Selecting the decimal rounding grid #
Count digits after scaling to the least quantum. This permits exact rational
inputs, including values below the least subnormal. Nat.log computes the digit
count from the scaled integer part.
The selected exponent is unbounded above so overflow can be tested after
precision rounding, as required by IEEE 754-2019 §7.4.
Number of decimal places to remove from the least-quantum grid.
Instances For
Least quantum retaining the format's precision, before overflow is handled. Zero selects the least quantum without constructing its radix power.