[Top][All Lists]
[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
- [Bug classpath/23466] New: Double.toString(0.0010) ---> "0.001" ISO "0.0010", veldema at cs dot fau dot de, 2005/08/18
- [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010", pinskia at gcc dot gnu dot org, 2005/08/18
- [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010",
robilad at kaffe dot org <=
- [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010", tromey at gcc dot gnu dot org, 2005/08/19
- [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010", veldema at cs dot fau dot de, 2005/08/22
- [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010", veldema at cs dot fau dot de, 2005/08/22
- [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010", robilad at kaffe dot org, 2005/08/22
- [Bug libgcj/23466] call to _dtoa is possibly incorrect, tromey at gcc dot gnu dot org, 2005/08/22