Bit operationsReference
bit.band
Combine values with bitwise AND.
Details#
Combine values with bitwise AND. A number in 0…4294967295 representing an unsigned 32-bit result.
Signature#
bit.band(...values: number): numberParameters#
| Parameter | Type | Description |
|---|---|---|
...values | number | Values folded from left to right. |
Returns#
A number in 0…4294967295 representing an unsigned 32-bit result.
Examples#
Local example
print(bit.band(12, 10)) -- 8