isNaN

Determines whether the given value is NaN (Not a Number)

@safe @nogc nothrow pure @safe @nogc nothrow pure
bool
isNaN
(
T
)
(
T x
)
if (
__traits(isFloating, T)
)

Parameters

x T

The value to check

Return Value

Type: bool

true if x is NaN, false otherwise.

Meta