Skip to content
Bit operationsReference

bit.bnot

Invert all 32 bits.

Details#

Invert all 32 bits. A number in 0…4294967295 representing an unsigned 32-bit result.

Signature#

Luau
bit.bnot(value: number): number

Parameters#

ParameterTypeDescription
valuenumberNumber converted to 32 bits.

Returns#

A number in 0…4294967295 representing an unsigned 32-bit result.

Examples#

Local example

Luau
print(bit.bnot(0)) -- 4294967295