isSubnormal

Determines if x is subnormal (denormalized). This operation is silent, no error flags are set and no exceptions are thrown.

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

Parameters

x D

a _decimal value

Return Value

Type: bool

true if x is subnormal, false otherwise (NaN, infinity, zero, normal)

Examples

assert(isSubnormal(decimal32("0x1p-101")));
assert(!isSubnormal(decimal32.max));
assert(!isSubnormal(decimal64.nan));

Meta