Arithmetic Operators


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

 

NOTE  Arithmetic operators follow mathematical rules of precedence

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