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