Метод System::Decimal::Compare

Decimal::Compare method

Определяет, меньше ли значение, представленное первым объектом Decimal, равно ли оно или больше значения, представленного вторым объектом Decimal.

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
ПараметрТипОписание
d1const Decimal&Первый операнд
d2const Decimal&Второй операнд

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

См. также