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?
✓ ANSWER ACCEPTED
A Little Math help??
1 answer
✓ Accepted answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Do you have any idea how my question got a -1? It's not a request is it?
Someone voted it down, and your right it isn`t a request.