Product SiteDocumentation Site

10.5. Limits and Errors when Rexx Uses Numbers Directly

When Rexx uses numbers directly, that is, numbers that have not been involved in an arithmetic operation, they are rounded, if necessary, according to the setting of NUMERIC DIGITS. The normal whole number limit depends on the default NUMERIC DIGITS setting. The default setting is 9, making the normal whole number limit 999999999.
The following table shows which numbers must be whole numbers and what their limits are:

Table 10.1. Whole Number Limits

Power values (right-hand operand of the power operator) The platform whole number limit.
Values of exprr and exprf in the DO instruction The platform whole number limit
Values given for DIGITS or FUZZ in the NUMERIC instruction The platform whole number limits (Note: FUZZ must always be less than DIGITS.)
Positional patterns in parsing templates The platform whole number limit
Number given for option in the TRACE instruction The platform whole number limit

When Rexx uses numbers directly, the following types of errors can occur: