FixedBinaryError with DIVIDE_BY_ZERO for a
zero divisor and OUT_OF_RANGE when the rounded quotient does not fit the storage, except that the minimum value divided by negative one wraps to the minimum, as explicitly specified.
Result!(FixedBinary, FixedBinaryError) div(FixedBinary rhs,
RoundingMode mode = RoundingMode.NEAREST_EVEN) const @safe pure nothrow @nogcChecked fixed-point division: this ÷ rhs, computed in a proven double-width intermediate and rounded per mode.
rhs | the divisor. |
mode | how the discarded low bits round. |
FixedBinaryError with DIVIDE_BY_ZERO for a
zero divisor and OUT_OF_RANGE when the rounded quotient does not fit the storage, except that the minimum value divided by negative one wraps to the minimum, as explicitly specified.