Skip to content

fixedUIntBigToSigned

fixedUIntBigToSigned(value, bitWidth): bigint

Defined in: packages/math-numbers/src/fixed-int-big/fixed-uint-big-to-signed.ts:14

The same bit pattern read as a two’s-complement integer: 255n at 8 bits becomes -1n, and anything below half the range is returned unchanged.

The inverse of fixedSIntBigToUnsigned, and a reinterpretation just as it is — the bits do not move.

bigint

A bitWidth-bit unsigned value.

number

Width of the integer, in bits.

bigint

When bitWidth is not a non-negative safe integer.