Syntax
floor(argument)
Description
The floor() function returns an integer that is no larger than the argument, that is, the greatest integer lower bound for argument.
The floor() function and the ceil() function together bracket argument such that the following are true:
If argument is an integer, ceil( argument ) = argument = floor( argument ).
If argument is not an integer, floor( argument ) < argument < ceil( argument ) and ceil( argument ) = floor( argument ) + 1.
Example
println(floor(12.3456)) 12