fixedSIntBigShiftLeft
fixedSIntBigShiftLeft(
value,count,bitWidth,mode?):bigint
Defined in: packages/math-numbers/src/fixed-int-big/fixed-sint-big-shift-left.ts:22
Left shift of a bitWidth-bit two’s-complement integer, under mode.
The shift happens at full bigint width and the policy applies to the exact
result, so a count at or beyond bitWidth is well defined rather than
undefined as it is in C: under wrap every bit has left the window and the
answer is 0n.
Parameters
Section titled “Parameters”bigint
The value to shift.
number
Bit positions to shift by; non-negative.
bitWidth
Section titled “bitWidth”number
Width of the integer, in bits.
Overflow policy. Defaults to
numericConfig.defaultOverflowMode.
Returns
Section titled “Returns”bigint
Throws
Section titled “Throws”When count is negative or not a safe integer, or
bitWidth is not a non-negative safe integer.
Throws
Section titled “Throws”When the result does not fit and mode is abort.