Skip to main content
Convert value from a twos-compliment representation of width bits to its value. If the highest bit is 1, the result will be negative.

Parameters

Returns

bigint The value.

Throws

If the value is too large for the width.

Source

utils/maths.ts:42