isnan

isnan

Defined in header <math.h>
#define isnan(arg) /* implementation defined */
(since C99)

Determines if the given floating point number arg is a not-a-number (NaN) value. The macro returns an integral value.

FLT_EVAL_METHOD is ignored: even if the argument is evaluated with more range and precision than its type, it is first converted to its semantic type, and the classification is based on that (this matters if the evaluation type supports NaNs, while the semantic type does not).

Paramet