avoid some overlong lines from posix urls, etc.
[gnulib.git] / doc / posix-functions / strtod.texi
1 @node strtod
2 @section @code{strtod}
3 @findex strtod
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/strtod.html}
6
7 Gnulib module: strtod
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some old platforms.
13
14 @item
15 This function mis-parses strings with leading @samp{+} on some old platforms:
16 Old versions of Linux.
17
18 @item
19 This function returns a wrong end pointer on some old platforms.
20
21 @item
22 This function consumes whitespace even when there is nothing that should
23 be parsed on some platforms:
24 IRIX 6.5, OSF/1 5.1.
25
26 @item
27 This function allows whitespace between @samp{e} and the exponent on
28 some platforms:
29 HP-UX 11.11, IRIX 6.5, OSF/1 4.0.
30
31 @item
32 This function returns the wrong end pointer for @samp{-0x} on some
33 platforms:
34 glibc 2.4, MacOS X 10.3, FreeBSD 6.2, AIX 7.1, Cygwin < 1.5.25-11.
35
36 @item
37 This function returns +0.0 (not -0.0) for @samp{-0} on some platforms:
38 IRIX 6.5, OSF/1 4.0.
39
40 @item
41 This function fails to parse Infinities and plain NaNs on some platforms:
42 OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw.
43
44 @item
45 This function fails to parse @samp{NaN()} on some platforms:
46 glibc-2.3.6, MacOS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 7.1, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Cygwin < 1.5.25-11, mingw.
47
48 @item
49 This function fails to parse @samp{NaN(@var{n-char-sequence})} on some
50 platforms:
51 OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, mingw.
52
53 @item
54 This function parses @samp{NaN(@var{n-char-sequence})}, but returns
55 the wrong end pointer on some platforms:
56 glibc-2.4, AIX 7.1.
57
58 @item
59 This function fails to parse C99 hexadecimal floating point on some
60 platforms:
61 NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, OSF/1 5.1,
62 Solaris 10, mingw.
63
64 @item
65 This function returns the wrong end pointer for @samp{0x1p} on some
66 platforms:
67 AIX 7.1.
68 @end itemize
69
70 Portability problems not fixed by Gnulib:
71 @itemize
72 @item
73 This function returns +0.0 (not -0.0) for negative underflow on some
74 platforms:
75 glibc 2.7, Cygwin 1.5.x, mingw.
76
77 @item
78 This function cannot distinguish between ``nan'' and ``-nan'' on some
79 platforms:
80 glibc 2.7, IRIX 6.5, OSF/1 5.1, mingw.
81
82 @item
83 This function fails to correctly parse very long strings on some
84 platforms:
85 MacOS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, IRIX 6.5, OSF/1 5.1, Cygwin, mingw.
86
87 @item
88 The replacement function does not always return correctly rounded results.
89 @end itemize