bitShln

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

bitShln(number, count) → returns Numeric

Argument Reference for the bitShln function

number

Required: Yes
Integer

count

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