System::Decimal::CompareTo method

Decimal::CompareTo method

Determines if the value represented by the current object is less than, equal to or greater than the value represented by the specified object.

int System::Decimal::CompareTo(const Decimal &d) const
ParameterTypeDescription
dconst Decimal&The comparand

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

See Also