Determine whether one floating-point number is greater than another
#include <math.h> #define isgreater( x, y ) ...
The isgreater() macro determines whether x is greater than y. It's the same as (x) > (y) but doesn't raise the invalid floating-point exception if x and y are unordered.
The value of (x) > (y). If x or y is NaN, this function returns 0.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |