math.floor

Syntax

i = math.floor(n)

Get the previous integer by rounding down. For example, both 2.001 and 2.999 are rounded to 2.0.

Returns:i - previous integer
Arguments:n - number to round