Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

TRUNC

TRUNC returns an integer value that is the truncated value of x. If x is positive or 0, this is the largest integer value less than or equal to x. If x is negative, this is the smallest integer value greater than or equal to x.

Read syntax diagramSkip visual syntax diagram>>-TRUNC(x)----------------------------------------------------><
 
x
Real expression.

The base, mode, scale, and precision of the result match those of x. Except when x is fixed-point with precision (p,q), the precision of the result is given by:

  (min(N,max(p-q+1,1)),0)

where N is the maximum number of digits allowed.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)