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: "paul at inet dot co dot za" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Sep 2007 10:09:31 -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 paul at inet dot co dot za 2007-09-22 10:09 -------
(In reply to comment #17)
> The number 2597.525 does not exist. There are no numbers between
> 2597.5249999999996362 and 2597.5250000000000909 in IEEE double.
>
You are wrong. All numbers between
2597.5249999999996362 and
2597.5250000000000909 are
2597.52500000000 stored to 15 decimals of precision.
You are incorrect to assume that there exists a floating point number such as
2597.5250000000000909
since this is simply
2597.52500000000 stored with an error of 0.0000000000000909
--
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.