bit.band

Bitwise 'and'

Prototype

n = bit.band (a, b, ...)

Description

This takes one or more arguments. All are converted to signed 'long long' (64-bit integers). The result is all arguments "and-ed" together bitwise.
eg.

print (bit.band (15, 7, 3)) --> 3

Lua functions

Topics