Function isNaN
Determines whether x is not a number (NaN).
bool isNaN(F)
(
F x
)
if (isFloatingPoint!F);
Parameters
Name | Description |
---|---|
F | Type of the floating point number. |
x | Floating point number. |
Returns
true if x is not a number, false otherwise.
Example
assert(isNaN(float .init));
assert(isNaN(double .init));
assert(isNaN(real .init));