Floor                                                                                                         Function

 

FLOOR(theNumber as Float)

 

Description

Return an number by rounding theNumber to the next lower integer. Negative numbers are rounded to the next lower negative number.

 

Example

Dim x as float

Dim result as integer

x=-33.2

result=floor(x) 'will calculate result=-34