I know what math.floor does. I just have a small question, if I do a = math.floor(b, 10)
will that round down to the nearest 10?
You can divide a number by 10 then round it down. Then multiply it by 10 again. Example:
local number=26 print(math.floor(number/10)*10)
Output: 20