This takes one or more arguments. All are converted to signed 'long long' (64-bit integers).
See also bit.band and bit.bor.
Note that setting a bit can be done with bit.bor.
Clearing a bit can be done with bit.clear.
See Also ...
bit.ashr - Shifts a number right, preserving sign
Lua base functions
(Help topic: lua=bit.test)
Enter a search string to find matching documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )