SqlDecimal.Truncate(SqlDecimal, Int32) Metod

Definition

Trunkerar den angivna SqlDecimal strukturens värde till den position du vill ha.

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

Parametrar

n
SqlDecimal

Strukturen SqlDecimal som ska trunkeras.

position
Int32

Decimalpositionen som talet ska trunkeras till.

Returer

Ange ett negativt värde för parametern position för att trunkera värdet till motsvarande position till vänster om decimaltecknet.

Gäller för

Se även