On Tue, 14 Feb 2012 16:39:37 +0100, Joshua Reusch <yos...@arkandos.de> wrote:

Hello,

why does this assertion fail:

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

there is the std.math.isNaN function which works correctly, but why can I not just use the comparison ?

Thanks, Joshua

My favorite explanation: Would you expect this to pass?

assert( sqrt(-1.0) == 0.0 / 0.0 );

Reply via email to