divMod

fnvoid divMod(const BigInt dividend, const BigInt divisor, out BigInt quotient, out BigInt remainder) pure nothrow @safe

Finds the quotient and remainder for the given dividend and divisor in one operation.

Parameters

dividendthe BigInt to divide
divisorthe BigInt to divide the dividend by
quotientis set to the result of the division
remainderis set to the remainder of the division