Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you round a number to the nearest three decimal in roblox?

Asked by 6 years ago

I am making a math project to round a number. Please round this and not truncate it. Thanks!

0
math.ceil User#24403 69 — 6y
0
@incap he asked to the 3rd decimal place EpicMetatableMoment 1444 — 6y
1
print(tonumber(string.format("%." .. (3) .. "f", roundingNumber))) Zafirua 1348 — 6y
2
math.floor((x * 1000) + 0.5) / 1000 fredfishy 833 — 6y
0
Thank You Zafirua! superbolt999 36 — 6y

Answer this question