bit32.band (...number) -> 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(3.14)
{
"def": "func",
"name": "band",
"energy": 0,
"must_use": true,
"sleep": 0,
"signatures": [
{
"def": "signature",
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
{
"def": "simple",
"value": "number"
}
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "args",
"desc": "numbers to and together",
"type": [
{
"def": "simple",
"value": "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",
"takesSelf": false,
"private": false
}