Developing Apama Applications > Apama EPL Reference > Expressions > Multiplicative operators > Remainder operator
Remainder operator
The remainder operator % produces a result by computing the numeric remainder from dividing the left operand value by the right operand value. For example, the expression 13%5 yields a result of 3.
Operand type
If both operands are of type integer, then the integral remainder is computed and the result is of type integer. If both operands are of type decimal or both of type float, then the floating-point remainder is computed 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 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.