commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MATH-1222) Use Double.isNaN(double) instead of x != x in FastMath
Date Sat, 09 May 2015 20:18:00 GMT

     [ 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)

Mime
View raw message