Skip to content

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.

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 difference is negative and mode is abort.