commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject [Math] NaN in "equals"
Date Thu, 06 May 2010 12:09:17 GMT
Hello.

In the "MathUtils" class, "equals" methods consider that a NaN is equal to a
NaN. It seems that the orthodox view is that such a comparison should return
"false".
Is there a rationale behind the current behaviour (e.g. it is admittedly
more efficient to not call "Double.isNaN")?
Or can I make the changes in order to comply to IEEE?


Best,
Gilles

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


Mime
View raw message