fixedUIntBigSub
fixedUIntBigSub(
left,right,bitWidth,mode?):bigint
Defined in: packages/math-numbers/src/fixed-int-big/fixed-uint-big-sub.ts:20
Difference of two bitWidth-bit unsigned integers, under mode.
The asymmetric case: an unsigned difference overflows downward far more often
than upward, and 3n - 5n is wrap’s all-but-two pattern, clamp’s 0n,
or abort’s throw.
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 difference is negative and mode is
abort.