Operators

bitnot

Supported By

Syntax

bitnot factor

Factor yields an integer.

Description

The bitnot operator evaluates to the bitwise NOT of the given value. Each bit in the resulting value will be opposite the corresponding bit in the given value.

Note

The expression bitnot x is equivalent to the expression -x-1 when x is an integer.

See Also

not