Garry's Mod Wiki

bit.rshift

  number bit.rshift( number value, number shiftCount )

Description

Returns the right shifted value.

The returned value will be clamped to a signed 32-bit integer, even on 64-bit builds.

Arguments

1 number value
The value to be manipulated.
2 number shiftCount
Amounts of bits to shift right by.

Returns

1 number
shiftedValue