On Saturday, 15 February 2014 at 05:18:51 UTC, Adam S wrote:
assert(float.init == float.nan);

nan never equals nan, this is in the floating point spec used by D, C and others.

Use this instead:
http://dlang.org/phobos/std_math.html#isNaN

Reply via email to