7.6

Table Of Contents
Integer, measure, or currency values. Both expressions must be the same type. The returned value is set according to the
type of the parameters.
Code Sample Examples
Examples 1 and 2 show both ways of adding numbers.
Example 1
show(inttostr(2+2)) %Displays 4
Example 2
show(floattostr(add(4.7,2.1))) %Displays 6.8
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
Div (function)
Divides an expression with another. This is the functional equivalent to the / operator.
Syntax
div( expression, expression2 ) integer, measure, currency value
Arguments
expression1, expression2
Integer, measure or currency values. Both expressions must be the same type. The returned value is set according to the type
of the parameters.
Code Sample Examples
Examples 1 and 2 show both ways of dividing numbers.
©2010 Objectif Lune Inc - 515 -