Developing Apama Applications > EPL Reference > Expressions > Multiplicative operators > Division operator
Division operator
The division operator / produces a result by computing the numeric quotient of its two operands. The left operand value, the dividend, is divided by the right operand value, the divisor.
Operand type
If both operands are of type integer, any fractional part of the result value is discarded. In other words, the result is truncated toward zero. For example, the expression 13/5 yields a result of 2.
If both operands are of type integer, then integral division is performed and the result is of type integer. If both operands are of type decimal or both are of type float, then floating-point division is performed and the result type is the same as the operand type.
If the right operand’s value is zero, a runtime error is raised.
Copyright © 2013-2015 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.