CompareTo()

Decimal::CompareTo(const Decimal&) const 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

Arguments

ParameterTypeDescription
dconst Decimal&The comparand

Return Value

-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