Επεξεργασία

Κοινή χρήση μέσω


SqlDecimal.Truncate(SqlDecimal, Int32) Method

Definition

Truncates the specified SqlDecimal structure's value to the that you want position.

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.SqlDecimal
Public Shared Function Truncate (n As SqlDecimal, position As Integer) As SqlDecimal

Parameters

n
SqlDecimal

The SqlDecimal structure to be truncated.

position
Int32

The decimal position to which the number will be truncated.

Returns

Supply a negative value for the position parameter in order to truncate the value to the corresponding position to the left of the decimal point.

Applies to

See also