harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6406) Combination of multiply and compareTo BigDecimal methods returns unexpected result
Date Mon, 27 Sep 2010 13:09:33 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Ellison resolved HARMONY-6406.
----------------------------------

         Assignee: Tim Ellison
    Fix Version/s: 5.0M16
       Resolution: Fixed

Thanks Richard, and apologies that it took so long to address the problem.

Patch applied to the MATH module at repo revision r1001723.

Please check that this fixes the problem for you.



> Combination of multiply and compareTo BigDecimal methods returns unexpected result
> ----------------------------------------------------------------------------------
>
>                 Key: HARMONY-6406
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6406
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M12
>            Reporter: Richard Zschech
>            Assignee: Tim Ellison
>             Fix For: 5.0M16
>
>
> The following test fails:
> BigDecimal testInstance = BigDecimal.TEN.multiply(new BigDecimal("0.1"));
> int result = testInstance.compareTo(new BigDecimal("1.00"));
> assertEquals(0, result);
> I expect 'result' to be 0, but am obtaining -1.

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