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 5 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 — 5y
0
@incap he asked to the 3rd decimal place EpicMetatableMoment 1444 — 5y
1
print(tonumber(string.format("%." .. (3) .. "f", roundingNumber))) Zafirua 1348 — 5y
2
math.floor((x * 1000) + 0.5) / 1000 fredfishy 833 — 5y
0
Thank You Zafirua! superbolt999 36 — 5y

Answer this question