Help Contents / Arithmetic / Bitwise Operations / aShift

aShift num1 num2

outputs "num1" arithmetic-shifted to the left by "num2" bits. If num2 is negative, the shift is to the right with sign extension. 

Examples: 

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


previous: BitNot	next: lShift
