Garry's Mod Wiki

Garry's Mod Wiki

  number bit.lshift( number value, number shiftCount )

Description

Returns the result of shifting given value left bitwise by given number of bits. See this wiki article for more details.

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
The resulting value. Input of 0b1001 will become 0b10010 for one left shift, etc.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...