You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2014/01/16 23:13:19 UTC

[jira] [Resolved] (MATH-1089) Precision.round() returns different results when provided negative zero as double or float

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

Thomas Neidhart resolved MATH-1089.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.3

Fixed in r1558933.

> Precision.round() returns different results when provided negative zero as double or float
> ------------------------------------------------------------------------------------------
>
>                 Key: MATH-1089
>                 URL: https://issues.apache.org/jira/browse/MATH-1089
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Thomas Neidhart
>             Fix For: 3.3
>
>
> Precision.round(-0.0d, x) = 0.0
> Precision.round(-0.0f, x) = -0.0
> After discussion on the mailinglist, the result should always be -0.0.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)