Difference between revisions of "Bit.rshift"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.09<br/> === Description === Returns the bitwise logical right-shift by the number of bits given by the second argument. <source l...")
 
Line 4: Line 4:
 
Returns the bitwise logical right-shift by the number of bits given by the second argument.
 
Returns the bitwise logical right-shift by the number of bits given by the second argument.
 
<source lang="lua">
 
<source lang="lua">
(number), = bit.rshift(xn,)
+
(number) = bit.rshift(x,n)
 
</source>
 
</source>
'''x:''' (number) number to shift ''''''<br/>
+
'''x''': (number) number to shift ''''''<br/>
'''n:''' (number) amount of bits to shift ''''''<br/>
+
'''n''': (number) amount of bits to shift ''''''<br/>
 
'''Returns''' (number) bitwise logical right-shift<br/>
 
'''Returns''' (number) bitwise logical right-shift<br/>

Revision as of 11:19, 23 August 2018

Available since: Gideros 2013.09

Description

Returns the bitwise logical right-shift by the number of bits given by the second argument.

(number) = bit.rshift(x,n)

'x: (number) number to shift '
'n: (number) amount of bits to shift '
Returns (number) bitwise logical right-shift