Arithmetic expressions

The operands in an arithmetic expression must be decimal constants or decimal or integer CL variables.

An arithmetic operator (only in symbolic form) must be between the operands. The results of all arithmetic expressions are decimal values, which may be stored in a CL variable.

Note: The division operator (/) must be preceded by a blank if the operand that precedes it is a variable name. (For example, &A /2, not &A/2.) All other arithmetic operators may optionally be preceded or followed by a blank.

Arithmetic operands can be signed or unsigned; that is, each operand (whether it is a numeric constant or a decimal or integer CL variable) can be immediately preceded by a plus (+) or minus (-) sign, but a sign is not required. When used as a sign, no blanks can occur between the + or - and its value. For example, a decimal constant of 23.7 can be expressed as +23.7 or -23.7 (signed) or as 23.7 (unsigned).

The following are examples of arithmetic expressions:

(&A + 1)    (&A + &B -15)
(&A - &F)   (&A+&B-15)
(&A + (-&B))

If the last non-blank character on a line is a + or -, it is treated as a continuation character and not as an arithmetic operator.