Tests if x is less than or greater than y.
#include <math.h> int islessgreater (x, y) real-floating x; real-floating y;
The islessgreater macro determines whether its first argument is less than or greater than its second argument. The islessgreater(x, y) macro is similar to (x) < (y) || (x) > (y); however, islessgreater(x, y) does not raise the invalid floating-point exception when x and y are unordered (nor does it evaluate x and y twice).
x | Specifies the first value to be compared. |
y | Specifies the second value to be compared. |
Upon successful completion, the islessgreater macro returns the value of (x) < (y) || (x) > (y).
If x or y is NaN, 0 is returned.
isgreater Macro, isgreaterequal Subroutine, isless Macro, islessequal Macro, and isunordered Macro.
math.h in AIX 5L Version 5.2 Files Reference.