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

CEIL

CEIL determines the smallest integer value greater than or equal to x, and assigns this value to the result.

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

The result has the mode, base, scale, and precision of x, except when x is fixed-point with precision (p,q). The precision of the result is then 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)