bitShrn

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

bitShrn(number, count) → returns numeric

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

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

bitShrn(5,1)

Expected Result: 2

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub