Function isNaN

Determines whether x is not a number (NaN).

bool isNaN(F) (
  F x
)
if (isFloatingPoint!F);

Parameters

NameDescription
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));