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.
Parameters
Section titled “Parameters”bigint
The value to negate.
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 value is the minimum and mode is abort.