# math.rshift

Syntax

i := math.rshift(i1,i2)

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

Returns: i - bit shifted integer i1 - integer to bit shift i2 - amount to shift