Kilowatt Software L.L.C.
Classic Rexx Tutorial
Language Level 4.00 (TRL-2)

Trunc   built-in function

The Trunc function returns the truncation of a numeric value. Normally, the truncation eliminates the trailing decimal portion of the number. Alternatively, an optional number of trailing decimal digits can be specified.

Observe: the result will never in exponential form. Consequently, the resulting number can be long.

The numeric value is NOT rounded upward when the digit that follows the truncation position is greater than or equal to 5.


Kilowatt Software L.L.C. -- Classic Rexx Tutorial -- Back to top
Click here if you have any comments or questions regarding this tutorial

Last updated on: 11 Apr 2006