You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2015/05/09 22:18:00 UTC

[jira] [Resolved] (MATH-1222) Use Double.isNaN(double) instead of x != x in FastMath

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

Luc Maisonobe resolved MATH-1222.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0

Fixed in git repository (commit:903f280).

Thanks for the report and for the patch.

> Use Double.isNaN(double) instead of x != x in FastMath
> ------------------------------------------------------
>
>                 Key: MATH-1222
>                 URL: https://issues.apache.org/jira/browse/MATH-1222
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Benedikt Ritter
>              Labels: github
>             Fix For: 4.0
>
>
> As discussed in http://markmail.org/thread/f6juilawhswblnve we should use Double.isNaN(double) for checking whether a double is NaN in FastMath instead of using the odd looking x != x comparison.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)