FixedBinary.div

Result!(FixedBinary, FixedBinaryError) div(FixedBinary rhs, RoundingMode mode = RoundingMode.NEAREST_EVEN) const @safe pure nothrow @nogc

Checked fixed-point division: this ÷ rhs, computed in a proven double-width intermediate and rounded per mode.

Parameters

rhsthe divisor.
modehow the discarded low bits round.

Returns

The quotient, or 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.