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

Decimal::CompareTo method

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

int System::Decimal::CompareTo(const Decimal &d) const
ПараметрТипОписание
dconst Decimal&Сравниваемое значение

ReturnValue

-1 if the value represented by the current object is less than the value represented by d; 0 if the values are equal; 1 if the value represented by the current object is greater than the value represented by d

См. также