1 2 3 4 5 6 7 8
#include <math.h> #define isnan(x) (fpclassify(x) == FP_NAN) /* STDC(199901) LINK(m) see also SUSv1 */