This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/303] scanf into single rounds in 2.3.3 (truncates in 2.3.1)


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]