Shl Function
Shift bits to the left in a natural number
Function
The function Shl shifts the bits of natural numbers in the first argument to the left. The number of steps is given in the second argument.
The number of steps must be between 0 and 31. Larger values are interpreted as modulo 32.
The argument can be a single number or a data field. For data fields, the number of each element is shifted and the results are returned in a data field of the same size.
Syntax
Shl (number, steps)
Shl (list, steps)
Shl (table, steps)
Example
Shl(12,3)= 96
Shl([9,12,15],3)= 72 96 120