Skip to content

bigIntDivmod

bigIntDivmod(dividend, divisor): QuotientRemainder<bigint, bigint>

Defined in: big-int/divmod.ts:13

Euclidean division: the quotient and remainder satisfying dividend = quotient × divisor + remainder with 0 ≤ remainder < |divisor|.

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

bigint

bigint

QuotientRemainder<bigint, bigint>

When divisor is zero.