[
https://issues.apache.org/jira/browse/MATH-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866129#action_12866129
]
Gilles commented on MATH-370:
-----------------------------
> I see no reason to change the names or modify the behavior of any of the
> other equals methods in MathUtils.
Maybe because the other "equals" methods also consider that NaN == NaN which
contradicts IEEE !
Where people need to treat all NaN values as equal, they will use one of the
"equalsIncludingNaN", otherwise they will use one of the "equals" methods (and
get an IEEE754-compliant result wrt to NaN values).
> 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.