Not Operator
Performs the bitwise complement on the value of the operand.
Syntax
Not operand
Parameters
- operand
- Specify an integer value.
Return Values
1’s complement of the value of the operand.
Description
The Not function performs the bitwise complement on the value of the operand. Each bit of the result is the complement of the corresponding bit in the operand, effectively changing 0 bits to 1, and 1 bits to 0.
See Also
Abs, And, Atan, Atan2, Cos, Int, LShift, Mod, Or, RShift, Sgn, Sin, Sqr, Str$, Tan, Val, Xor
Not Operator Example
This is a simple Command window example on the usage of the Not instruction.
>print not(1)
-2
>
← Next Statement O →