NUMERIC changes the way in which a program carries out arithmetic operations. The options of this instruction are described in detail in Numbers and Arithmetic and Errors, but in summary:>>-NUMERIC--+-DIGITS--+-------------+----------+--;------------>< | '-expression1-' | | .-SCIENTIFIC-------------. | +-FORM--+------------------------+-+ | +-ENGINEERING------------+ | | '-+-------+--expression2-' | | '-VALUE-' | '-FUZZ--+-------------+------------' '-expression3-'
There is no limit to the value for DIGITS (except the amount of storage available—see the note in REXX General Concepts for more information) but note that high precisions are likely to require a good deal of processing time. It is recommended that you use the default value wherever possible.
You can retrieve the current NUMERIC DIGITS setting with the DIGITS built-in function, see section DIGITS.
You can retrieve the current NUMERIC FORM setting with the FORM built-in function, see section FORM.
NUMERIC FUZZ temporarily reduces the value of NUMERIC DIGITS by the NUMERIC FUZZ value during every numeric comparison. The numbers are subtracted under a precision of DIGITS minus FUZZ digits during the comparison and are then compared with 0.
You can retrieve the current NUMERIC FUZZ setting with the FUZZ built-in function, see section FUZZ.