Skip to content

bigIntDivTrunc

bigIntDivTrunc(dividend, divisor): bigint

Defined in: packages/core/src/big-int/div-trunc.ts:8

Truncating division — rounds toward zero, as bigint’s own / does.

bigIntDivTrunc(-7n, 2n) === -3n.

bigint

bigint

bigint

When divisor is zero.