leftshift
leftshift(x_valx_num) =>x_result
Description
Returns the integer result of shifting a value a specified number of bits to the left. Prefix form of the << arithmetic operator. leftshift is logical (that is, vacated bits are 0-filled).
Arguments
Value Returned
Examples
leftshift(7 2)
=> 28
leftshift(10 1)
=> 20
Related Topics
Return to top