Bug 14518 - strtod ignores the rounding mode
Summary: strtod ignores the rounding mode
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.16
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-25 15:25 UTC by Joseph Myers
Modified: 2014-06-17 04:49 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2012-08-25 15:25:32 UTC
strtod ignores the rounding mode and always tries to round to nearest.  (Split out from bug 3479; http://sourceware.org/bugzilla/show_bug.cgi?id=3479#c6 has a testcase.)
Comment 1 Joseph Myers 2012-09-12 23:41:37 UTC
Fixed for 2.17 by:

commit 6c9b0f68267cf365d060d4e51e7cb8f61498b875
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Sep 12 23:36:19 2012 +0000

    Make strtod respect the rounding mode (bug 14518).