Bit32.bnot
From GiderosMobile
Available since: Gideros 2022.3
Class: bit32
Description
Returns the bitwise negation of x. <syntaxhighlight lang="lua"> (number) = bit32.bnot(x) </source>
For any integer x, the following identity holds: <syntaxhighlight lang="lua"> assert(bit32.bnot(x) == (-1 - x) % 2^32) </source>
Parameters
x: (number) value
Return values
Returns (number) result
See also