Difference between revisions of "Bit.arshift"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.09<br/> === Description === Returns the bitwise arithmetic right-shift by the number of bits given by the second argument. <sourc...")
 
Line 4: Line 4:
 
Returns the bitwise arithmetic right-shift by the number of bits given by the second argument.
 
Returns the bitwise arithmetic right-shift by the number of bits given by the second argument.
 
<source lang="lua">
 
<source lang="lua">
(number), = bit.arshift(xn,)
+
(number) = bit.arshift(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 arithmetic right-shift<br/>
 
'''Returns''' (number) bitwise arithmetic right-shift<br/>

Revision as of 11:16, 23 August 2018

Available since: Gideros 2013.09

Description

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

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

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