1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" Based on glibc infopages
6 .TH NAN 3 2002-08-10 "GNU" "libc math functions"
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 );
18 Compile with \-std=c99; link with \-lm.
20 These functions return a representation (determined by
23 If the implementation does not support
24 quiet NaNs, these functions return zero.
27 .I nan("char-sequence")
29 .I strtod ("NAN(char-sequence)",NULL)
30 and similarly calls to
34 are equivalent to analogous calls to
41 is used in an unspecified manner.
42 On IEEE 754 systems, there are many representations of NaN, and
45 On other systems it may do nothing.
48 See also IEC 559 and the appendix with
49 recommended functions in IEEE 754/IEEE 854.