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
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.