Skip to Content

Arithmetic Operators

The priority of the operators is defined from 1 to 9, 9 being the highest priority.

^

  • Description: Exponentiation operator.

  • Number of parameters: 2

  • Parameter type: numerical, integer

  • Result type: numerical

  • Priority: 9

-

  • Description: Negation operator.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: numerical

  • Priority: 8

%

  • Description: Modulo operator.

  • Number of parameters: 2

  • Parameter type: integer, integer

  • Result type: integer

  • Priority: 7

*

  • Description: Multiplication operator.

  • Number of parameters: 2

  • Parameter type: numerical, numerical

  • Result type: numerical

  • Priority: 7

/

  • Description: Division operator.

  • Number of parameters: 2

  • Parameter type: numerical, numerical

  • Result type: real

  • Priority: 7

+, -

  • Description: Addition and subtraction operators.

  • Number of parameters: 2

  • Parameter type: numerical, numerical

  • Result type: numerical

  • Priority: 6