This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010"
- From: "veldema at cs dot fau dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2005 12:18:51 -0000
- Subject: [Bug libgcj/23466] Double.toString(0.0010) ---> "0.001" ISO "0.0010"
- References: <20050818173012.23466.veldema@cs.fau.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From veldema at cs dot fau dot de 2005-08-22 12:18 -------
Confirmed, this is a bug in SUN's JDK since 2001.
Perhaps a a bug should be introduced to make libgcj/classpath bug compatible ?
if (double_string == "0.00x" && x != '0') return return "0.00x0"
should do the trick.
Ronald.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23466