Doc about floating-point and math API.
[gnulib.git] / doc / posix-headers / math.texi
1 @node math.h
2 @section @file{math.h}
3
4 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/math.h.html}
5
6 Gnulib module: math
7
8 Portability problems fixed by Gnulib:
9 @itemize
10 @item
11 The conversion from @code{int} to @code{long double} in incorrect on some
12 platforms:
13 glibc 2.7 on Linux/SPARC64.
14
15 @item
16 The macro @code{NAN} is not defined on some platforms:
17 OpenBSD 4.0, AIX 5.1, IRIX 6.5, OSF/1 5.1.
18
19 @item
20 The macro @code{NAN} is not exposed outside of C99 compilation on some
21 platforms:
22 glibc.
23
24 @item
25 The macros @code{NAN} and @code{HUGE_VAL} expand to a function address
26 rather than a floating point constant on some platforms:
27 Solaris 10.
28 @end itemize
29
30 Portability problems not fixed by Gnulib:
31 @itemize
32 @item
33 @code{NAN} is not a compile time constant with some compilers:
34 OSF/1 with Compaq (ex-DEC) C 6.4.
35 @item
36 The macro or variable @code{math_errhandling} is not defined on some platforms:
37 glibc 2.11, OpenBSD 4.9, NetBSD 5.1, UP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin 1.7.9, mingw, MSVC 9.
38 @end itemize