SqlDecimal.Truncate(SqlDecimal, Int32) Méthode

Définition

Tronque la valeur de la structure spécifiée SqlDecimal à la position souhaitée.

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

Paramètres

n
SqlDecimal

Structure SqlDecimal à tronquer.

position
Int32

Position décimale à laquelle le nombre sera tronqué.

Retours

Fournissez une valeur négative pour le position paramètre afin de tronquer la valeur à la position correspondante à gauche du point décimal.

S’applique à

Voir aussi