System::Decimal::Compare methode

Decimal::Compare method

Bepaalt of de waarde die wordt vertegenwoordigd door het eerste Decimal object kleiner is dan, gelijk aan of groter dan de waarde die wordt vertegenwoordigd door het tweede Decimal object.

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
ParameterTypeBeschrijving
d1const Decimal&De eerste operand
d2const Decimal&De tweede 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

Zie ook