You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by Russel Winder <ru...@winder.org.uk> on 2016/06/06 11:14:32 UTC

Playing with NaN

Does Groovy do something special so that:

	Double.NaN == Double.NaN

is true? According to the IEEE754 standard this should be false. Java
and Scala require a special metho to test for NaN since it is a value
that is equal to no other value including itself.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder