Math.floor(10) = 9?

This is because math.floor always rounds down and the math operation you’re doing is creating a floating point error, which is a slight deviation from the expected number. math.floor won’t round up even in the slightest.

1 Like