Skip to content

fixedSIntBigMin

fixedSIntBigMin(bitWidth): bigint

Defined in: packages/math-numbers/src/fixed-int-big/fixed-sint-big-min.ts:13

The most negative value a bitWidth-bit two’s-complement integer holds: -(2 ** (bitWidth - 1)).

Its magnitude is one larger than fixedSIntBigMax at every width but zero, which is why negating or taking the absolute value of it overflows. A width of zero holds only 0n, so the two meet there. Widths outside the non-negative integers are not part of the domain and are not rejected: unlike fixedSIntBigFrom, this admits no value and so has nothing to guard.

number

Width of the integer, in bits.

bigint