- Documentation
- Shared functions
- bitLShift
Function
bitLShift
Shifts bits left by the given count. Bits pushed beyond 32 are lost.
Syntax
int bitLShift(int value, int count)Arguments
valueint- The number.
countint- Shift count.
Returns
The result.
Example
print(bitLShift(1, 4)) -- 16