Skip to content

fixedUIntBigShiftRight

fixedUIntBigShiftRight(value, count): bigint

Defined in: packages/math-numbers/src/fixed-int-big/fixed-uint-big-shift-right.ts:16

Right shift of a bitWidth-bit unsigned integer; zeros fill from the left.

Arithmetic and logical right shift coincide here — an unsigned value has no sign bit to propagate — so this is the only one, and unlike its signed counterparts it needs no bitWidth: the input already carries every bit it has. Takes no overflow mode either, since shifting right cannot leave the range.

bigint

The value to shift.

number

Bit positions to shift by; non-negative.

bigint

When count is negative or not a safe integer.