SqlDecimal.Round(SqlDecimal, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取离具有指定精度的指定 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
参数
要 SqlDecimal 舍入的结构。
- position
- Int32
返回值中的有效小数位数(精度)。
返回
SqlDecimal包含舍入操作结果的结构。