Clears one or more bits
This takes one or more arguments. All are converted to signed 'long long' (64-bit integers). The result is the first argument 'and'ed with the ones-complement of the other arguments.
Note that setting a bit can be simply done with bit.bor.
Testing a bit can be done with bit.test.
See Also ...
bit.ashr - Shifts a number right, preserving sign
Lua base functions
(Help topic: lua=bit.clear)
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 )