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.
Parameters
Section titled “Parameters”bigint
A bitWidth-bit unsigned value.
bitWidth
Section titled “bitWidth”number
Width of the integer, in bits.
Returns
Section titled “Returns”bigint
Throws
Section titled “Throws”When bitWidth is not a non-negative safe integer.