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 © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.