Skip to content

bigIntDivEuclid

bigIntDivEuclid(dividend, divisor): bigint

Defined in: packages/core/src/big-int/div-euclid.ts:12

Euclidean division — the quotient whose remainder is bigIntModEuclid, so dividend === quotient * divisor + bigIntModEuclid(dividend, divisor).

Derived from the remainder rather than by flooring, because flooring and Euclidean division agree only when the divisor is positive.

bigint

bigint

bigint

When divisor is zero.