Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TRUNC (Truncate) z/OS TSO/E REXX Reference SA32-0972-00 |
|
>>-TRUNC(number--+----+--)------------------------------------->< '-,n-' returns the integer part of number and n decimal places. The default n is 0 and returns an integer with no decimal point. If you specify n, it must be a positive whole number or zero. The number is first rounded according to standard REXX rules, just as though the operation number+0 had been carried out. The number is then truncated to n decimal places (or trailing zeros are added if needed to make up the specified length). The result is never in exponential form. Here are some examples:
The number is rounded according to the current setting of NUMERIC DIGITS if necessary before the function processes it. |
Copyright IBM Corporation 1990, 2014
|