Returns the largest integer smaller than or equal to a number. Alias for the standard library function math.floor.


See also Lua library functions.

Signature:

floor = floor(x)

Arguments:

  • x - A number (number)

Returns:

  • floor - Largest integer smaller than or equal to x (number)
This function is defined in the Lua standard libraries