Arithmetic Operators

Operator Function Usage
^ Exponentiation x = y^2
- Negation x = -2
* Multiplication x% = 2 * 3
/ Division x = 10/2
Mod Modulo x = y Mod z
+ Addition x = 2 + 3
- Subtraction x = 6 - 4
  1. *Arithmetic operators follow mathematical rules of precedence

    * '+' or '&' can be used for string concatenation.