This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4943] Inconsistent rounding behaviour for sprintf and IEEE doubles
- From: "vincent+libc at vinc17 dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Sep 2007 09:32:54 -0000
- Subject: [Bug libc/4943] Inconsistent rounding behaviour for sprintf and IEEE doubles
- References: <20070820142205.4943.paul@inet.co.za>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From vincent+libc at vinc17 dot org 2007-09-23 09:32 -------
(In reply to comment #27)
> Sorry, Vincent, but I do not agree with that bit of blurb. The actual value
> when written in decimal cannot take more than 15 decimal digits into
> consideration. The correct way to interpret the value is
> 5000.524999999999636 == 5000.52499999999
> with a possible error of
> 0.000000000009636
This is ridiculous and shows that you still haven't understood anything.
> For now, it seems that a pocket calculator does a better job of converting
> binary floating point to decimal text representation than either GLibC,
> MSVCRT.DLL or Vincent Lefèvre .
FYI, most pocket calculators use decimal arithmetic, thus do not do any binary
<-> decimal conversion. But now, I hope that you understand at least that you
need decimal arithmetic.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4943
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.