bitShrn

Performs a bitwise shift-right, no-rotation operation.

bitShrn(number, count) → returns Numeric

bitShrn Argument Reference

number Numeric
Required

Integer

count Numeric
Required

Number of bits to shift to the right (Integer in the range 0-31, inclusive)

Examples sample code invoking the bitShrn function


Shift right by 1 bit

Uses the function bitShrn to perform a bitwise shift-right operation (no-rotation)

bitShrn(5,1)

Expected Result: 2


Fork me on GitHub