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 .
floor ( n as Number ) As Integer
Argument | Type | Description |
---|---|---|
n | Number | The input number. |
Intent >floor(5.1) --> 5
Intent >floor(5) --> 5Here, the same value is returned, since it is an integral value.
Intent >floor(-5.1) --> -6Here, the next lower integer is returned, even if the input is negative.