isNaN

Determines whether x is not a number (NaN).

bool
isNaN
(
F
)
(
F x
)

Parameters

F

Type of the floating point number.

x F

Floating point number.

Return Value

Type: bool

$(D_KEYWORD true) if x is not a number, $(D_KEYWORD false) otherwise.

Examples

assert(isNaN(float.init));
assert(isNaN(double.init));
assert(isNaN(real.init));

Meta