This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11877] New: atof returns the wrong number on x86.
- From: "floitsch at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Aug 2010 09:32:01 -0000
- Subject: [Bug libc/11877] New: atof returns the wrong number on x86.
- Reply-to: sourceware-bugzilla at sourceware dot org
On some string atof returns the wrong number.
Gcc compiles to the correct double.
Example:
if (3929201589819414e-25 != atof("3929201589819414e-25"))
bad_glibc;
atof produces the correct result on x64.
--
Summary: atof returns the wrong number on x86.
Product: glibc
Version: 2.11
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: floitsch at google dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11877
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.