harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pons Rudy (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6486) [classlib][luni] java.util.Formatter rounding error
Date Mon, 29 Mar 2010 03:14:27 GMT
[classlib][luni] java.util.Formatter rounding error
---------------------------------------------------

                 Key: HARMONY-6486
                 URL: https://issues.apache.org/jira/browse/HARMONY-6486
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Pons Rudy


Formatter use DecimalFormat to format numbers, with the default rounding mode (RoundingMode.HALF_EVEN)
instead of RoundingMode.HALF_UP, ie System.out.printf("%.1f", 0.25); will print 0.2 instead
of 0.3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message