SqlDecimal.Truncate(SqlDecimal, Int32) Methode

Definitie

Kapt de waarde van de opgegeven SqlDecimal structuur af op de gewenste positie.

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

De SqlDecimal structuur die moet worden afgekapt.

position
Int32

De decimale positie waarop het getal wordt afgekapt.

Retouren

Geef een negatieve waarde op voor de position parameter om de waarde af tekappen op de overeenkomstige positie links van het decimaalteken.

Van toepassing op

Zie ook