You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Michael Giannakopoulos <mi...@gmail.com> on 2011/03/05 22:28:56 UTC
[Math] About "FastMathTest"
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!
Best regards,
Michael
Re: [Math] About "FastMathTest"
Posted by sebb <se...@gmail.com>.
On 5 March 2011 21:28, Michael Giannakopoulos <mi...@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