You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: COBOL Programming Course #1 - Getting Started/COBOL Programming Course #1 - Getting Started.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3353,19 +3353,19 @@ This chapter aims to introduce the concept of implementing arithmetic expression
3353
3353
3354
3354
Arithmetic expressions are used as operands of certain conditional and arithmetic statements. An arithmetic expression can consist of any of the following items:
3355
3355
3356
-
- An identifier described as a numeric elementary item (including numeric functions).
3356
+
1. An identifier described as a numeric elementary item (including numeric functions).
3357
3357
3358
-
- A numeric literal.
3358
+
2. A numeric literal.
3359
3359
3360
-
- The figurative constant ZERO.
3360
+
3. The figurative constant ZERO.
3361
3361
3362
-
- Identifiers and literals, as defined in items 1, 2, and 3, separated by arithmetic operators.
3362
+
4. Identifiers and literals, as defined in items 1, 2, and 3, separated by arithmetic operators.
3363
3363
3364
-
- Two arithmetic expressions, as defined in items 1, 2, 3, or 4, separated by an arithmetic operator.
3364
+
5. Two arithmetic expressions, as defined in items 1, 2, 3, or 4, separated by an arithmetic operator.
3365
3365
3366
-
- An arithmetic expression, as defined in items 1, 2, 3, 4, or 5, enclosed in parentheses.
3366
+
6. An arithmetic expression, as defined in items 1, 2, 3, 4, or 5, enclosed in parentheses.
3367
3367
3368
-
- Any arithmetic expression can be preceded by a unary operator.
3368
+
7. Any arithmetic expression can be preceded by a unary operator.
3369
3369
3370
3370
Identifiers and literals that appear in arithmetic expressions must represent either numeric elementary items or numeric literals on which arithmetic can be performed. If the value of an expression to be raised to a power is zero, the exponent must have a value greater than zero. Otherwise, the size error condition exists. In any case where no real number exists as the result of an evaluation, the size error condition exists.
0 commit comments