Skip to main content
Skip table of contents

Mathematical operators


Mathematical operators

The following mathematical operators are available:

Operator

Meaning

Example

Result

=

Assignment

A = 10

10

+

Addition

A = 1 + 2

3

-

Subtraction

A = 5 - 2

3

*

Multiplication

A = 3 * 5

15

/

Division

A = 8/2

4

**

Exponent

A = 3**2

9

%

Modulo

A = 17 % 5

2

()

Parentheses

A = 2*(1+2)

6


In formulas, the mathematical order of operations applies (exponents before multiplication/division before addition/subtraction):

2 * 3 + 4 = (2 * 3) + 4

3 * 4 ** 2 = 3 * (4 ** 2)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.