SqlDecimal.Truncate(SqlDecimal, Int32) 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定 SqlDecimal 结构的值截断到希望的位置。
public:
 static System::Data::SqlTypes::SqlDecimal Truncate(System::Data::SqlTypes::SqlDecimal n, int position);public static System.Data.SqlTypes.SqlDecimal Truncate (System.Data.SqlTypes.SqlDecimal n, int position);static member Truncate : System.Data.SqlTypes.SqlDecimal * int -> System.Data.SqlTypes.SqlDecimalPublic Shared Function Truncate (n As SqlDecimal, position As Integer) As SqlDecimal参数
要截断的 SqlDecimal 结构。
- position
- Int32
数字将要截断到的小数位置。
返回
为 position 参数提供一个负值,以便将该值截断到小数点左侧对应的位置。