[
https://issues.apache.org/jira/browse/MATH-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866321#action_12866321
]
Gilles commented on MATH-370:
-----------------------------
Actually, I think that the first of the above "equals" should be replaced by:
{code}
public static boolean equals(double x, double y) {
return equals(x, y, 1);
}
{code}
I.e. calling the fourth form (when it is replaced by the IEEE-compliant
version).
> 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.