SqlDecimal.Round Method (SqlDecimal, Int32)

 

Gets the number nearest the specified SqlDecimal structure's value with the specified precision.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public static SqlDecimal Round(
	SqlDecimal n,
	int position
)

Parameters

n
Type: System.Data.SqlTypes.SqlDecimal

The SqlDecimal structure to be rounded.

position
Type: System.Int32

The number of significant fractional digits (precision) in the return value.

Return Value

Type: System.Data.SqlTypes.SqlDecimal

A SqlDecimal structure that contains the results of the rounding operation.

.NET Framework
Available since 1.1
Return to top
Show: