- Subtraction operator
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Subtracts one numeric expression from another numeric expression.
Syntax
|
- expression
- An expression with a numeric value.
Example
The r-subt.p procedure determines the amount of inventory available by subtracting the amount allocated from the total on hand.
r-subt.p
|
Note
Subtracting one decimal expression from another produces a DECIMAL value. Subtracting one INTEGER expression from another produces an INTEGER. Subtracting an integer expression (INTEGER or INT64) from a decimal expression (or subtracting a decimal expression from an integer expression) produces a DECIMAL value. Subtracting a mix of INTEGER and INT64 expressions produces an INT64 value.