bitShln

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

bitShln(number, count) → returns numeric

Argument Reference

number numeric
Required

Integer

count numeric
Required

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

Examples
Sample code invoking the bitShln function

Uses the bitShln function to perform a bitwise shift-left operation (no-rotation)

bitShln(5,1)

Expected Result: 10

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

Fork me on GitHub