SqlDecimal.Round(SqlDecimal, Int32) 方法

定义

获取离具有指定精度的指定 SqlDecimal 结构值最近的数字。

public:
 static System::Data::SqlTypes::SqlDecimal Round(System::Data::SqlTypes::SqlDecimal n, int position);
public static System.Data.SqlTypes.SqlDecimal Round(System.Data.SqlTypes.SqlDecimal n, int position);
static member Round : System.Data.SqlTypes.SqlDecimal * int -> System.Data.SqlTypes.SqlDecimal
Public Shared Function Round (n As SqlDecimal, position As Integer) As SqlDecimal

参数

n
SqlDecimal

SqlDecimal 舍入的结构。

position
Int32

返回值中的有效小数位数(精度)。

返回

SqlDecimal包含舍入操作结果的结构。

适用于

另请参阅