harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Zschech (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6382) BigDecimal.round(MathContext) has different behaviour to RI
Date Mon, 23 Nov 2009 13:24:39 GMT
BigDecimal.round(MathContext) has different behaviour to RI
-----------------------------------------------------------

                 Key: HARMONY-6382
                 URL: https://issues.apache.org/jira/browse/HARMONY-6382
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M11
            Reporter: Richard Zschech


Harmony behaves differently to the reference implementation when rounding BigDecimals. The
following:

System.out.println(new BigDecimal("-0.999999999999999999999555").round(new MathContext("precision=23
roundingMode=HALF_EVEN")));

produces with Harmony:

-0.9999999999999999999996

and produce with the reference implementation:

-0.99999999999999999999956



-- 
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