Numeric arithmetic expressions
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Numeric arithmetic expressions
Numeric arithmetic expressions compute a value using addition, subtraction, multiplication, and division operations on numeric literals and expressions that evaluate to any numeric data type.
Syntax
|
Parameters
- + | -
-
Unary operators.
- numeric_literal
-
Number value.
- numeric_expr
-
Evaluates to a numeric data type:
+ | - | * | /
Operators for addition, subtraction, multiplication, and division. SQL evaluates numeric arithmetic expressions in the following order:
- Unary plus or minus
- Expressions in parentheses
- Multiplication and division, from left to right
- Addition and subtraction, from left to right