Returns a new BigInt extracting the low bits of the given BigInt and interpreting them as a two’s complement signed integer, discarding higher bits.
BigInt.asIntN(bits, int)
bits
The number of low bits to use
int
The BigInt whose bits to extract
A signed value of BigInt modulo 2**bits.
BigInt.asIntN(3, 0b11110n).toString(2)
-10