cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern int iscnanf (float z); extern int iscnan (double z); extern int iscnanl (long double z); extern int iscnanw (__float80 z); extern int iscnanq (__float128 z); extern int iscnanll (long_long_double z); extern int iscnandf (decimal_float z); extern int iscnand (decimal_double z); extern int iscnandl (decimal_long_double z); extern int iscnandll (decimal_long_long_double z);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
The C99 Standard, Annex G.3, requires that a complex value is infinite if at least one component is Infinity, even if the other is a NaN. Thus, a complex number is a NaN if neither imaginary nor real components are Infinity, and at least one of them is a NaN.