math.floor(n) returns n rounded down.
math.floor(n)
n
if n is a number, returns the largest integer smaller than or equal to n.
if n is not a number, returns null.
null
# evaluates to 7 math.floor(7.7) # evaluates to -3 math.floor(-2.1)
Last updated 1 month ago
Was this helpful?