Bit32 API
Bit32.arshift Bit32.band Bit32.bnot Bit32.bor Bit32.btest Bit32.bxor Bit32.extract Bit32.lrotate
|
|||||||||||
Bitwise left-shift. When called, shifts all bits in a number the specified amount to the left. For example, 3 is 11 in binary. Shifting it two bits to the left makes it twelve (1100). A left-shift is also equivalent to number * 2shift. | |||||||||||
Syntax | bit32.lshift(
|
||||||||||
Returns | number shifted | ||||||||||
Part of | Lua (source) | ||||||||||
API | bit32 | ||||||||||
|
Bit32.replace Bit32.rrotate
|
|||||||||||
Bitwise right-shift. When called, shifts all bits in a number the specified amount to the right. For example, twelve is 1100 in binary. Shifting it two bits to the right makes it 3 (11). A right-shift is also equivalent to number / 2shift. | |||||||||||
Syntax | bit32.rshift(
|
||||||||||
Returns | number shifted | ||||||||||
Part of | Lua (source) | ||||||||||
API | bit32 | ||||||||||
|
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.