not()

Performs a bitwise NOT operation on an integer.

This inverts all bits of the given number.

Syntax

not(value)

Parameters

Parameter Type Description
value Number The integer value to apply bitwise NOT.

Return Value

Examples

not(0);    // returns 4294967295 (binary 00000000... -> 11111111...)
not(5);    // returns 4294967290 (binary 00000101 -> 11111010)
not(4294967295); // returns 0 (all bits flipped)

See also

bit
not
and
or
xor
nand
nor
xnor
shl
shr