Important: The information in this document is obsolete and should not be used for new development.
Comparison Functions
MathLib provides four functions that perform comparisons between two floating-point arguments:
Returns the positive difference x - y or 0. Returns the maximum of x or y. Returns the minimum of x or y. Returns the relationship between x and y. These functions take advantage of the rule from the IEEE standard that all values except NaNs have an order:
< all negative real numbers < = +0 < all positive real numbers < +
These functions also make special cases of NaNs so that they raise no floating-point exceptions.