Arithmetic Expressions

An arithmetic expression designates a floating point number. It has the following form:

<term> [<binary-operator> <term>]

A binary-operator is one of the following:

  • +    (addition)

  • -     (subtraction)

  • *    (multiplication)

  • /    (division)

  • ^    (exponentiation)

 

A term is one of the following:

Arithmetic expressions can be grouped using parentheses.

 

Conventional arithmetic precedence rules are followed:

  • Parentheses

  • Function Invocation

  • Unary operators

  • Exponentiation (symbol '^')

  • Multiplication/division (symbols '*' and '/')

  • Addition/subtraction (symbols '+' and '-')

  • Left to right evaluation (textual order)