floor()

Synopsis

Returns the smallest integer not greater than n. This applies even when n is negative.

You can also use the ceiling() or round() functions to convert a number into an Integer .

Syntax

floor ( n as Number ) As Integer 
Argument Type Description
n Number The input number.

Example 1

Intent >floor(5.1) --> 5 

Example 2

Intent >floor(5) --> 5 
Here, the same value is returned, since it is an integral value.

Example 3

Intent >floor(-5.1) --> -6 
Here, the next lower integer is returned, even if the input is negative.