This is the mail archive of the glibc-bugs@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]

[Bug libc/4943] Inconsistent rounding behaviour for sprintf and IEEE doubles


------- 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.


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