Ceiling                                                                                                      Function

 

CEILING(theNumber as Float)

 

Returns: an integer number

 

Description

Returns an integer by rounding theNumber to the next higher integer. Negative numbers are rounded to the next higher negative number.

 

Example

Dim x as float

Dim result as integer

x=-33.2

result=ceiling(x) 'will calculate result of -33