commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [Math] About "FastMathTest"
Date Sat, 05 Mar 2011 21:48:35 GMT
On 5 March 2011 21:28, Michael Giannakopoulos <miccagiann@gmail.com> wrote:
> Hello to all,
>
> In the class 'org.apache.commons.math.util.FastMathTest' multiple condition
> of type "x == x" are found... Is this a good practice??? This condition is
> always true so no condition needed... Thanks a lot for your time!

The conditon is *not* always true, because NaN != NaN.
The nearby comments try to make this clear.

> Best regards,
> Michael
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message