Skip to content

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.

bigint

The value to take the magnitude of.

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.