méthode System::Decimal::CompareTo

Decimal::CompareTo method

Détermine si la valeur représentée par l’objet actuel est inférieure, égale ou supérieure à la valeur représentée par l’objet spécifié.

int System::Decimal::CompareTo(const Decimal &d) const
ParamètreTypeDescription
dconst Decimal&Le comparand

ReturnValue

-1 if the value represented by the current object is less than the value represented by d; 0 if the values are equal; 1 if the value represented by the current object is greater than the value represented by d

Voir aussi