>>-TRUNC(number--+----+--)------------------------------------->< +-,n-+
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 rounded according to standard Rexx rules, as though the operation number+0
had been carried out. Then it is truncated to n decimal places or trailing zeros are added to reach the specified length. The result is never in exponential form. If there are no nonzero digits in the result, any minus sign is removed.
Example 7.94. Builtin function TRUNC
TRUNC(12.3) -> 12 TRUNC(127.09782,3) -> 127.097 TRUNC(127.1,3) -> 127.100 TRUNC(127,2) -> 127.00
Note