Arithmetic Operators

  • Unary plus (+)
  • Negation (-)
  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/) - DPL will generate an error message if you try to divide by zero (0).
  • Exponentiation (^) - The exponentiation operator raises its first operand to the power specified by its second operand. If its first operand is not 0 and the second is 0, the exponentiation operator returns the number 1. The operator is not defined if both operands are 0, or if the first operand is 0 and the second is negative, or if the first operand is negative and the second is not an integer. This operator is equivalent to the pow function.

If any of the arithmetic operators produce a number whose absolute value is greater than 1.79769E+308, DPL will not be able to store and process the result.

Versions: DPL Professional, DPL Enterprise, DPL Portfolio

See Also