isNaN

Determines if x represents a NaN. This operation is silent, no error flags are set and no exceptions are thrown.

@IEEECompliant("isNaN", 25)
bool
isNaN
(
D
)
(
auto const ref D x
)

Parameters

x D

a _decimal value

Return Value

Type: bool

true if x is NaN (quiet or signaling), false otherwise (any other value than NaN)

Examples

assert(isNaN(decimal32()));
assert(isNaN(decimal64.nan));
assert(!isNaN(decimal128.max));

Meta