This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/274] New: The function strtold() does not work as expected
- From: "ivprimi at libero dot it" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Jul 2004 19:56:17 -0000
- Subject: [Bug libc/274] New: The function strtold() does not work as expected
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
The function strtold() can fail in converting strings which represent floating
numbers with more than 19 meaningful digits after the radix character. For
instance, the instruction
x = strtold ("42.0000000000000000001", &endptr);
will put in x the value 42, while after
x = strtold ("42.00000000000000000001", &endptr);
or
x = strtold ("42.0000000000000000000001", &endptr);
x will be equal to zero !
--
Summary: The function strtold() does not work as expected
Product: glibc
Version: 2.3.2
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: ivprimi at libero dot it
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=274
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.