SqlDecimal::Round Method (SqlDecimal, Int32)
.NET Framework (current version)
Gets the number nearest the specified SqlDecimal structure's value with the specified precision.
Assembly: System.Data (in System.Data.dll)
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::SqlDecimalA SqlDecimal structure that contains the results of the rounding operation.
.NET Framework
Available since 1.1
Available since 1.1
Show: