This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Ping Re: Fix strtod rounding (bug 3479)
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 05 Sep 2012 16:39:51 +0200
- Subject: Re: Ping Re: Fix strtod rounding (bug 3479)
- References: <Pine.LNX.4.64.1208142055120.19862@digraph.polyomino.org.uk><20120814210740.4A0092C0E5@topped-with-meat.com><Pine.LNX.4.64.1208151907250.22955@digraph.polyomino.org.uk><Pine.LNX.4.64.1208201102390.4976@digraph.polyomino.org.uk><Pine.LNX.4.64.1208251539310.12613@digraph.polyomino.org.uk>
"Joseph S. Myers" <joseph@codesourcery.com> writes:
> +179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792
That doesn't appear to work with IBM long double:
strtold (179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792) returned 0x1.fffffffffffff8p+1023 not inf
> +-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792
Neither does this.
strtold (-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792) returned -0x1.fffffffffffff8p+1023 not -inf
(Four other similar failures in the neighborhood are ignored as inexact.)
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."