This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/303] scanf into single rounds in 2.3.3 (truncates in 2.3.1)
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 6 Aug 2004 07:41:13 -0000
- Subject: [Bug libc/303] scanf into single rounds in 2.3.3 (truncates in 2.3.1)
- References: <20040806040546.303.d.bullivant@auckland.ac.nz>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From jakub at redhat dot com 2004-08-06 07:41 -------
Yeah, it is an intentional change (fix).
2003-02-19 Ulrich Drepper <drepper@redhat.com>
* stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
decimal input digits.
* stdlib/tst-strtod.c (main): Add test for strtof bug.
strtof (and scanf which uses it internally) was always rounding, but in some
cases it incorrectly computed the number of digits it needs to fetch so that it
is properly rounded.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sources.redhat.com/bugzilla/show_bug.cgi?id=303
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.