z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Arithmetic

z/OS TSO/E REXX Reference
SA32-0972-00

You can combine character strings that are valid numbers (see Tokens) using the arithmetic operators:
+
Add
-
Subtract
*
Multiply
/
Divide
%
Integer divide (divide and return the integer part of the result)
//
Remainder (divide and return the remainder—not modulo, because the result may be negative)
**
Power® (raise a number to a whole-number power)
Prefix -
Same as the subtraction: 0 - number
Prefix +
Same as the addition: 0 + number
See Numbers and arithmetic for details about precision, the format of valid numbers, and the operation rules for arithmetic. Note that if an arithmetic result is shown in exponential notation, it is likely that rounding has occurred.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014