cfdocs

bitShrn

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

bitShrn(number, count)
returns numeric

Argument Reference

Name Type Required Default Description
number numeric Yes   Integer
count numeric Yes   Number of bits to shift to the right (Integer in the range 0-31, inclusive)

Shift right by 1 bit

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

bitShrn(5,1)

Expected Result: 2