NAN(3) BSD Programmer's Manual NAN(3)
nan, nanf, nanl - return quiet NaN
libm
#include <math.h>
double
nan(const char *tagp);
float
nanf(const char *tagp);
long double
nanl(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() and nanl() functions are equivalent to nan() but substituting
strtof() and strtold(), respectively.
The nan(), nanf(), and nanl() functions return a quiet NaN as specified
by tagp.
The nan(), nanf(), and nanl() functions return zero.
math(3), strtod(3)
The nan(), nanf(), and nanl() functions conform to ISO/IEC 9899:1999
("ISO C99").
MirOS BSD #10-current March 15, 2006 1
Generated on 2013-04-27 00:20:00 by $MirOS: src/scripts/roff2htm,v 1.77 2013/01/01 20:49:09 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2013 The MirOS Project, Germany.
This product includes material
provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.