bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/25974] New: Float to string conversion


From: mike at saxonica dot com
Subject: [Bug classpath/25974] New: Float to string conversion
Date: 26 Jan 2006 13:54:18 -0000

The following program outputs 1.0E8 using the Sun JRE. Using GNU classpath, it
outputs (bizarrely) 1E+08.0

package test;
public class FloatTest {
    public static void main(String[] args) {
        System.err.println((float)100000000);
    }
}

Michael Kay


-- 
           Summary: Float to string conversion
           Product: classpath
           Version: 0.20
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mike at saxonica dot com


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





reply via email to

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