COBOL Manual for TNS and TNS/R Programs
Procedure Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
8-45
Arithmetic Expressions
Arithmetic Expressions
num-id
is the identifier of a numeric data item.
num-lit
is a numeric literal.
arith-expr
is an arithmetic expression.
The value of an arithmetic expression is a numeric value.
Arithmetic expressions can appear in:
•
ENTER statements
•
EVALUATE statements
•
Reference modifiers
•
Sign conditions
•
Relation conditions
•
Function arguments
The values computed when arithmetic expressions are evaluated are transitory and
are not stored for later use by the program.
Topics:
•
Operands
•
Arithmetic Operators
•
Formation and Evaluation Rules
+
-
num-id
+
-
**
num-lit
arith-expr
(
)arith-expr
*
/
arith-expr
VST739.vsd