bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010"


From: robilad at kaffe dot org
Subject: [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010"
Date: 18 Aug 2005 22:41:04 -0000

------- Additional Comments From robilad at kaffe dot org  2005-08-18 22:41 
-------
that looks like a bug in Sun's implementation, as the Double.toString() API
specs demand that Double.toString returns only as many digits as necessary to
uniquely identify the floating point number. 

Adding one or more '0' digits does not seem useful, as 0.001 and 0.0010 are
mathematically speaking the same number. It would in fact seem to violate the
API specifications.

cheers,
dalibor topic

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23466




reply via email to

[Prev in Thread] Current Thread [Next in Thread]