Difference between revisions of "Bit.lshift"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.09<br/> === Description === Returns the bitwise logical left-shift by the number of bits given by the second argument. <source la...") |
|||
Line 4: | Line 4: | ||
Returns the bitwise logical left-shift by the number of bits given by the second argument. | Returns the bitwise logical left-shift by the number of bits given by the second argument. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) | + | (number) = bit.lshift(x,n) |
</source> | </source> | ||
− | '''x | + | '''x''': (number) number to shift ''''''<br/> |
− | '''n | + | '''n''': (number) amount of bits to shift ''''''<br/> |
'''Returns''' (number) bitwise logical left-shift<br/> | '''Returns''' (number) bitwise logical left-shift<br/> |
Revision as of 10:17, 23 August 2018
Available since: Gideros 2013.09
Description
Returns the bitwise logical left-shift by the number of bits given by the second argument.
(number) = bit.lshift(x,n)
'x: (number) number to shift '
'n: (number) amount of bits to shift '
Returns (number) bitwise logical left-shift