Significant-digit rounding on an arbitrary radix grid #
Decimal and hexadecimal output share the grid calculation, one integer rounding,
and carry. The radix and rounding callback are explicit; there are no format
widths or exponent limits here. Meaningful radix semantics require 1 < radix.
Exponent of the last requested radix digit, with adjusted exponent zero for zero.
Instances For
Round a coefficient onto another grid using an exact magnitude-rounding callback.
Instances For
Carry a rounded coefficient into the next radix position without changing its value.
Instances For
One significant-digit rounding, followed by a value-preserving radix carry.
Instances For