Apama 10.3.1 | Apama Documentation | Developing Apama Applications | 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 illustrates this using 64-bit binary values.
*b := 42;
0000000000000000000000000000000000000000000000000000000000101010
*not b
1111111111111111111111111111111111111111111111111111111111010101

Copyright © 2013-2019 | 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.