Arithmetic expressions are used as operands of certain conditional and arithmetic statements.
An arithmetic expression can consist of any of the following:
Identifiers and literals appearing in arithmetic expressions must represent either numeric elementary items or numeric literals on which arithmetic can be performed.
If an exponential expression is evaluated as both a positive and a negative number, the result will always be the positive number. The square root of 4, for example,
4 ** 0.5 (the square root of 4)is evaluated as +2 and -2. IBM COBOL always returns +2.
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 the evaluation, the size error condition exists.
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.