Apama 10.3 | Apama Documentation | Developing Apama Applications | EPL Reference | Expressions | Shift operators | Right shift operator
Right shift operator
The right shift operator >> produces its result by moving the left operand value's bit to the right. The vacated bits on the left are filled with 0 bits if the left operand value is zero or positive and filled with 1 bits if the left operand value is negative. Bits that are moved to beyond the rightmost bit (the least significant bit) position are discarded.
The following illustrate this using 64-bit binary values.
*i := 42;
*i >> 24
*i := -42;
*i >> 24

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