Arithmetic Operators
Operator precedence ranges from 1 to 9, with 9 evaluated first.
^
-
Description:
^raises the first parameter to the integer power given by the second. -
Number of parameters: 2
-
Parameter type: numerical, integer
-
Result type: numerical
-
Priority: 9
-
-
Description: Unary
-negates its parameter. -
Number of parameters: 1
-
Parameter type: numerical
-
Result type: numerical
-
Priority: 8
%
-
Description:
%computes the remainder. -
Number of parameters: 2
-
Parameter type: integer, integer
-
Result type: integer
-
Priority: 7
*
-
Description:
*multiplies the two parameters. -
Number of parameters: 2
-
Parameter type: numerical, numerical
-
Result type: numerical
-
Priority: 7
/
-
Description:
/divides the first parameter by the second. -
Number of parameters: 2
-
Parameter type: numerical, numerical
-
Result type: real
-
Priority: 7
+, -
-
Description:
+adds the parameters. Binary-subtracts the second from the first. -
Number of parameters: 2
-
Parameter type: numerical, numerical
-
Result type: numerical
-
Priority: 6