is_subnormal() reports whether each finite, nonzero value is subnormal
under the active decimal context. A value can therefore be subnormal in one
context and normal in another.
Examples
x <- decimal("0.001")
with_decimal_context(
decimal_context(precision = 3L, emin = -2L),
is_subnormal(x)
)
#> [1] TRUE