divMod
fn
void divMod(const BigInt dividend, const BigInt divisor,
out BigInt quotient, out BigInt remainder) pure @safePerforms division with remainder on two BigInt values.
This is a module-level free function for compatibility with std.bigint. It computes both the quotient and remainder of dividend / divisor.
Parameters
dividend | The number to be divided |
divisor | The number to divide by |
quotient | Output parameter for the quotient (dividend / divisor) |
remainder | Output parameter for the remainder (dividend % divisor) |
Throws
Nothing (nothrow), but behavior is undefined if divisor is zero