This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4869] New: glibc 2.6: incorrect printing of floating-point numbers
- From: "cottrell at wfu dot edu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 31 Jul 2007 01:42:46 -0000
- Subject: [Bug libc/4869] New: glibc 2.6: incorrect printing of floating-point numbers
- Reply-to: sourceware-bugzilla at sourceware dot org
Under the format, e.g., "%#.5g", glibc 2.6 prints floating point
numbers in a manner that is inconsistent with the C standard.
For example
printf("%#.5g\n", 50.99999999);
gives
51.00
which fails to display the required 5 digits.
--
Summary: glibc 2.6: incorrect printing of floating-point numbers
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: cottrell at wfu dot edu
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=4869
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.