Skip to content

fixedSIntBigNeg

fixedSIntBigNeg(value, bitWidth, mode?): bigint

Defined in: packages/math-numbers/src/fixed-int-big/fixed-sint-big-neg.ts:18

Negation of a bitWidth-bit two’s-complement integer, under mode.

Overflows for exactly one input: the minimum has no positive counterpart, so wrap returns it unchanged, clamp returns the maximum, and abort throws.

bigint

The value to negate.

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 value is the minimum and mode is abort.