Garry's Mod Wiki

bit.lshift

  number bit.lshift( number value, number shiftCount )

Description

Returns the left 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 left by.

Returns

1 number
shiftedValue