Skip to main content

BitwiseNot

Type​

operator

Summary​

Performs a bitwise NOT operation on the binary representation of Operand.

Syntax​

bitwise not <Operand>

Description​

Bitwise not returns the complement of Operand as a signed two's complement integer, i.e. equivalent to -(x + 1).

Parameters​

NameTypeDescription

Operand

An expression which evaluates to an integer.

Examples​

variable tVar as Number
put bitwise not -5 into tVar -- tVar contains 4

Value​

NameTypeDescription

return

The integer whose binary representation is the result of the bitwise NOT operation.

Thank you for your feedback!

Was this page helpful?