isNaN

bool
isNaN
(
real x
)

Examples

1 static assert(isNaN(real.nan));
2 static assert(isNaN(-real.nan));
3 static assert(!isNaN(real.infinity));
4 static assert(!isNaN(-real.infinity));
5 static assert(!isNaN(-1.0L / 0.0L));
6 static assert(!isNaN(real(0)));

Meta