Floating point init/nan

Adam S longestpants at gmail.com
Fri Feb 14 21:18:50 PST 2014


I seem to be having some difficulty with the nan and init 
properties of floating point types. Can anyone explain why the 
following assertions all fail:

assert(float.init == float.nan);
assert(float.nan == float.nan);
assert(float.init == float.init);

Thanks.


More information about the Digitalmars-d-learn mailing list