1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" Based on glibc infopages
6 .TH NAN 3 2010-09-20 "GNU" "Linux Programmer's Manual"
8 nan, nanf, nanl \- return 'Not a Number'
12 .BI "double nan(const char *" tagp );
14 .BI "float nanf(const char *" tagp );
16 .BI "long double nanl(const char *" tagp );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
30 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
31 _POSIX_C_SOURCE\ >=\ 200112L;
38 These functions return a representation (determined by
41 If the implementation does not support
42 quiet NaNs, these functions return zero.
45 .I nan("char-sequence")
49 strtod("NAN(char-sequence)", NULL);
56 are equivalent to analogous calls to
63 is used in an unspecified manner.
64 On IEEE 754 systems, there are many representations of NaN, and
67 On other systems it may do nothing.
69 These functions first appeared in glibc in version 2.1.
72 See also IEC 559 and the appendix with
73 recommended functions in IEEE 754/IEEE 854.