This is the mail archive of the libc-help@sourceware.org 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]

Re: [Ask for help]: Met a problem with strtof


On 04/25/2014 02:34 AM, Wang Weidong wrote:
> I found a Bug report on https://sourceware.org/bugzilla/show_bug.cgi?id=14518
> which report "strtod ignores the rounding mode and always tries to round to nearest. "
> Such as FE_UPWARD is "rounding towards positive infinity"
> It means that the value should "<=" the rounding value.
> So I think in glibc-2.11 here "-0x1.4EF009P-16 -> -0x1.4ef00ap-16" it is wrong while
> in glibc-2.17+ is right. And similar to the others.

Well, as I noted when I started this I'm not an FP expert; but the glibc
2.19 results I get match my expectations.

-- 
Mark Brown
ms_brown@sbcglobal.net


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