bitShln

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

bitShln(number, count) → returns Numeric

bitShln Argument Reference

number
Required

Integer

count
Required

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

Examples sample code invoking the bitShln function


Shift left by 1 bit

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

bitShln(5,1)

Expected Result: 10


Fork me on GitHub