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

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

produces with Harmony:


and produce with the reference implementation:


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

View raw message