fixedSIntBigAbs
fixedSIntBigAbs(
value,bitWidth,mode?):bigint
Defined in: packages/math-numbers/src/fixed-int-big/fixed-sint-big-abs.ts:19
Absolute value of a bitWidth-bit two’s-complement integer, under mode.
Overflows for exactly one input, for the same reason fixedSIntBigNeg does: the minimum’s magnitude is one past the maximum.
Parameters
Section titled “Parameters”bigint
The value to take the magnitude of.
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.