bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/27311] New: DecimalFormat problem


From: roman at kennke dot org
Subject: [Bug classpath/27311] New: DecimalFormat problem
Date: 25 Apr 2006 14:08:34 -0000

The following (BeanShell) program snippet should output '0.0E00' but does print
'0.0E--9223372036854775808' instead. This is especially bad, because when
trying to reparse this, this will result in a NumberFormatException due to the
'--' in it.


import java.text.*;
l_decimalFormatSymbols = new DecimalFormatSymbols(Locale.ENGLISH);
NUMBERFORMAT_FLOAT = new DecimalFormat("0.0#####E00",
l_decimalFormatSymbols);
NUMBERFORMAT_FLOAT.setGroupingUsed(false);
print(NUMBERFORMAT_FLOAT.format(0.0E00));


-- 
           Summary: DecimalFormat problem
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: roman at kennke dot org


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





reply via email to

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