System::Decimal::Compare-Methode

Decimal::Compare method

Bestimmt, ob der von dem ersten Decimal-Objekt dargestellte Wert kleiner, gleich oder größer ist als der von dem zweiten Decimal-Objekt dargestellte Wert.

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
ParameterTypBeschreibung
d1const Decimal&Der erste Operand
d2const Decimal&Der zweite Operand

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

Siehe auch