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.
Parameters
Section titled “Parameters”bigint
Left operand.
bigint
Right operand.
bitWidth
Section titled “bitWidth”number
Width of the integer, in bits.
Overflow policy. Defaults to
numericConfig.defaultOverflowMode.
Returns
Section titled “Returns”bigint
Throws
Section titled “Throws”When bitWidth is not a non-negative safe integer.
Throws
Section titled “Throws”When the product does not fit and mode is abort.