7.12.14.5 The islessgreater macro

Synopsis

1

#include <math.h>
int islessgreater(real-floating x, real-floating y);

Description

2

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).

Returns

3

The islessgreater macro returns the value of (x) < (y) || (x) > (y).