FixedBinary.divInt

Result!(FixedBinary, FixedBinaryError) divInt(I rhs) const @safe pure nothrow @nogc

Checked division by an integer (truncating toward zero, like C integer division). The one overflowing quotient, raw I.min ÷ -1, wraps to I.min by this API's explicit policy, without executing an overflowing signed division (which can trap on hardware).

Parameters

rhsthe integer divisor.

Returns

The quotient, or FixedBinaryError with DIVIDE_BY_ZERO for a

zero divisor.