double.init is nan ..?

bearophile bearophileHUGS at lycos.com
Fri Mar 14 09:50:10 PDT 2014


Adam D. Ruppe:

>         double test;
>         assert(test is double.nan); // fails

Keep in mind that there are many NaNs, and double.nan is not the 
same as dounle init. So this passes:

assert(test is double.init);

Bye,
bearophile


More information about the Digitalmars-d mailing list