math.lshift

Syntax

i := math.lshift(i1,i2)

Get the result of a left bit shift. Shift i1 to the left by i2 bits. This is nearly equivalent to multiplying i1 by {2}^i2.

Returns:

i - bit shifted integer

Arguments:

i1 - integer to bit shift

i2 - amount to shift