NAN(3) BSD Programmer's Manual NAN(3)
nan, nanf - return quiet NaN
libm
#include <math.h> double nan(const char *tagp); float nanf(const char *tagp);
The call nan(, n-char-sequence"") is equivalent to the call strod(, NAN(n-char-sequence)"", NULL). The call nan(, "") is equivalent to the call strod(, NAN()"", NULL). The nanf() function is equivalent to nan() but substituting strtof().
The nan() and nanf() functions return a quiet NaN as specified by tagp.
The nan() and nanf() functions return zero.
math(3), strtod(3)
The nan() and nanf() functions conform to ISO/IEC 9899:1999 ("ISO C99"). MirBSD #10-current February 9, 2014 1