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