You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2010/06/09 12:48:13 UTC

[jira] Commented: (MATH-370) NaN in "equals" methods

    [ https://issues.apache.org/jira/browse/MATH-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877041#action_12877041 ] 

Gilles commented on MATH-370:
-----------------------------

Changes partially implemented in r952949. [Hopefully not breaking compatibility.]
Methods "equalsIncludingNaN" have been added and used internally (in the classes of the "stat.descriptive" package) instead of the now deprecated "equals" methods. Those should change semantics in release 3.0.


> NaN in "equals" methods
> -----------------------
>
>                 Key: MATH-370
>                 URL: https://issues.apache.org/jira/browse/MATH-370
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Gilles
>            Priority: Minor
>
> In "MathUtils", some "equals" methods will return true if both argument are NaN.
> Unless I'm mistaken, this contradicts the IEEE standard.
> If nobody objects, I'm going to make the changes.

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