[Ask for help]: Met a problem with strtof
Mark Brown
ms_brown@sbcglobal.net
Fri Apr 25 14:21:00 GMT 2014
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
More information about the Libc-help
mailing list