Skip to content

fixedSIntBigMul

fixedSIntBigMul(left, right, bitWidth, mode?): bigint

Defined in: packages/math-numbers/src/fixed-int-big/fixed-sint-big-mul.ts:20

Product of two bitWidth-bit two’s-complement integers, under mode.

The exact product is computed at full bigint width before the policy applies, so clamp clamps against the true result rather than against a truncated one — unlike a hardware multiply, which has already lost the high half by the time it can notice.

bigint

Left operand.

bigint

Right operand.

number

Width of the integer, in bits.

OverflowMode

Overflow policy. Defaults to numericConfig.defaultOverflowMode.

bigint

When bitWidth is not a non-negative safe integer.

When the product does not fit and mode is abort.