bit32.band(...(number)) : integer|number
Performs a bitwise and of all input numbers and returns the result.
If the function is called with no arguments, an integer with all bits set to 1
is returned.
bit32.band(8)
{
"def": "func",
"name": "band",
"energy": 0,
"pure": true,
"sleep": 0,
"signatures": [
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"integer"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "args",
"desc": "integers to and together",
"type": [
"integer"
],
"variadic": true,
"optional": false
}
]
},
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"number"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "args",
"desc": "numbers to and together",
"type": [
"integer",
"number"
],
"variadic": true,
"optional": false
}
]
}
],
"desc": "Performs a bitwise and of all input numbers and returns the result.\nIf the function is called with no arguments, an integer with all bits set to `1` is returned.",
"link": "https://luau.org/library#bit32-library#:~:text=function%20bit32.band"
}