lShift

Help Contents Arithmetic Bitwise Operations lShift
aShift Arithmetic Mutators

lShift num1 num2


has a bug: right shift with zero fill does not work yet!

outputs "num1" logical-shifted to the left by "num2" bits. If num2 is negative, the shift is to the right with zero fill. The inputs must be integers.

Examples:

lShift 1 1		;2  ;-)
lShift 2 -1		;1  ;-)
lShift [1 2 3][1 2 3]	;[2 8 24] ;-)

Reference:

aShift Arithmetic Mutators