islessgreater
From cppreference.com
| Defined in header <math.h>
|
||
| #define islessgreater(x, y) /* implementation defined */ |
(since C99) | |
Determines if the floating point number x is less than or greater than the floating-point number y, without setting floating-point exceptions.
Parameters
| x | - | floating point value |
| y | - | floating point value |
Return value
Nonzero integral value if x < y || x > y, 0 otherwise.
Notes
The built-in operator< and operator> for floating-point numbers may raise FE_INVALID if one or both of the arguments is NaN. This function is a "quiet" version of the expression x < y || x > y. The macro does not evaluate x and y twice.