FixedBinaryError with OUT_OF_RANGE
when the value (after rounding) does not fit the target scale.
Result!(FixedBinary!(I, Bits), FixedBinaryError) atScale(int Bits)(
RoundingMode mode = RoundingMode.NEAREST_EVEN) const @safe pure nothrow @nogcRe-scales to a different fraction-bit count over the same storage. Growing is exact and checked; reducing rounds per mode.
Bits | the target fraction-bit count. |
mode | how discarded bits round when reducing. |
FixedBinaryError with OUT_OF_RANGE
when the value (after rounding) does not fit the target scale.