Home Manual Reference Source

src/arithmetic/idivmod.js

export function idivmod(a, b) {
	const q = (a / b) | 0;

	return [q, (a %= b)];
}