System::Decimal::Compare méthode

Decimal::Compare method

Détermine si la valeur représentée par le premier objet Decimal est inférieure, égale ou supérieure à la valeur représentée par le second objet Decimal.

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
ParamètreTypeDescription
d1const Decimal&Le premier comparande
d2const Decimal&Le deuxième comparande

ReturnValue

-1 if the value represented by d1 is less than the value represented by d2; 0 if the values are equal; 1 if the value represented by d1 is greater than the value represented by d2

Voir aussi