Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

A Little Math help??

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?

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

2 comments

0

Do you have any idea how my question got a -1? It's not a request is it?

0

Someone voted it down, and your right it isn`t a request.

This discussion is preserved as it was. New answers, comments, and votes are closed.