Developing Apama Applications > Apama EPL Reference > Expressions > Bitwise logical operators > Unary bitwise inverse
Unary bitwise inverse
The unary bitwise not operator produces a result by computing the bitwise complement or inverse of its right operand, which must be an expression of type integer. For each bit in the operand’s value, the corresponding bit in the result value is set to 1 if the operand’s bit value is 0 and 0 if the operand’s bit value is 1.
Example
The following table illustrates this using 64-bit binary values.
 
b := 42;
0000000000000000000000000000000000000000000000000000000000101010
 
not b
1111111111111111111111111111111111111111111111111111111111010101
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.