7.5

Table Of Contents
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.
Example 1
show(inttostr(2/2)) %Displays 1
Example 2
show(floattostr(div(4.7,2.1))) %Displays 2.2381
FieldCount (function)
Returns a count of fields in the current database record. Since all records always hold the same number of fields, this value will
not change unless a new sample data file is used. This function is only useful in database emulation mode.
Syntax
fieldcount() integer value
Code Sample Example
"Field (function)" (page 542)
FloatToInt (function)
Converts a measure expression into an integer value.
Syntax
floattoint( expression ) integer value
Argument
expression
©2010 Objectif Lune Inc - 517 -