commons-dev mailing list archives

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

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
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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message