isNaN

bool
isNaN
(
D
)
(
D d
)
if (
isInstanceOf!(Decimal, D)
)

Return Value

Type: bool

If this decimal represents a positive or negative NaN

Examples

assert( isNaN(decimal("NaN")));
assert( isNaN(decimal("-NaN")));
assert(!isNaN(decimal("Inf")));
assert(!isNaN(decimal("1.001")));

Meta