flr( num )
Returns the integer portion (the "floor") of a number.
The number.

If the given number is a fractional value between integers, the next lowest integer is returned.

If the given number is an integer already, it is returned as-is.

Examples Edit

print(flr(5.9))   -- 5
print(flr(-5.2))  -- -6
print(flr(7))     -- 7
print(flr(-7))    -- -7

See also Edit

Community content is available under CC-BY-SA unless otherwise noted.