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:
• Numeric literal. See
Numerical Literals.
• Identifier (must be number-valued). See
Identifiers and Literals.
• Function invocation (must be number-valued). See
Function Invocations.
• Arithmetic Expression. See
Arithmetic Expressions.
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)