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 vincent+libc at vinc17 dot org  2007-10-03 12:31 -------
(In reply to comment #39)
> It seems that you yourself don't understand the right to freedom of speech. 
> Feel free to disagree with me, even vehemently- but you can't stop me from
> saying what I want to.

You can say whatever you want on your web page. But for the Linux Gazette, the
editor will decide, and I hope there will be enough complaints against such a
wrong article.

> When a standard library cannot convert a value with max precision 15 decimals
> from text to a double precision and back to the same text then I couldn't give a
> hoot about IEEE rounding modes- your binary to text conversion is broken.

Where did you see it cannot do that? Do you have an example?

(Note that "%.15f" outputs 15 digits after the decimal point, so this may be
more than 15 digits, taking into account those before the decimal point. You
should use "%.15g" if you want 15 significant digits.)

-- 


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]