The predefined decimal comparison operators are:
bool operator ==(decimal x, decimal y); bool operator !=(decimal x, decimal y); bool operator <(decimal x, decimal y); bool operator >(decimal x, decimal y); bool operator <=(decimal x, decimal y); bool operator >=(decimal x, decimal y);
Each of these operators compare the numeric values of the two decimal operands and return a bool
value that indicates whether the particular relation is true
or false
.