8.18/6/2018

Ceil (function)

Returns the smallest integer greater than or equal to the specified measure value.

Syntax

ceil( value ) integer value

Argument

value

Measure value. The absolute value of the measure value must be less than the maximum value of an integer in PostScript (2,147,483,647).

Code Sample Examples

These examples illustrate various applications of ceil().


ceil( -2.8 ) %Returns -2
ceil( 2.8 ) %Returns 3
ceil( -5.0 ) %Returns -5