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

См. также