bitShrn

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

bitShrn(number, count) → returns Numeric

Argument Reference for the bitShrn function

number

Required: Yes
Integer

count

Required: Yes
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