Apama Documentation : Developing Apama Applications : EPL Reference : Expressions : Additive operators
Additive operators
The additive operators are used to perform arithmetic on two operands of matching type: both of type decimal, both of type integer, or both of type float. The result type of the additive operators is the same as the type of the operands.
The additive operators are:
Operator
Operation
Description
+
Addition
Produces a result by computing the numeric sum of its left and right operands. If the two operands are both expressions of type integer, then integral addition is performed and the result is of type integer. If the two operands are both of type decimal or both of type float, then floating-point addition is performed and the result type is the same as the operand type.
Subtraction
Produces a result by computing the numeric difference between the left and right operands by subtracting the value of the right operand from the left. If the two operands are both expressions of type integer, then integral subtraction is performed and the result is of type integer. If the two operands are both of type decimal or both of type float, then floating-point subtraction is performed and the result type is the same as the operand type.
+
String concatenation
Produces a result by "adding" two strings together. The result is a new string whose value is the value of the right operand, an expression of type string, appended to the value of the left operand, an expression of type string. The result type of the string concatenation operator is string.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback