Revision Difference
bit.lshift#565102
<function name="lshift" parent="bit" type="libraryfunc">
<description>
Returns the left shifted value.
Returns the result of shifting given value left bitwise by given number of bits. See [this wiki article](https://en.wikipedia.org/wiki/Bitwise_operation#Bit_shifts) for more details.
<note>The returned value will be clamped to a signed 32-bit integer, even on 64-bit builds.</note>
</description>
<realm>Shared and Menu</realm>
<args>
<arg name="value" type="number">The value to be manipulated.</arg>
<arg name="shiftCount" type="number">Amounts of bits to shift left by.</arg>
</args>
<rets>
<ret name="" type="number">shiftedValue</ret>⤶
<ret name="" type="number">The resulting value. Input of `0b1001` will become `0b10010` for one left shift, etc.</ret>⤶
</rets>
</function>