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

5 comments

0

math.ceil

0

@incap he asked to the 3rd decimal place

1

print(tonumber(string.format("%." .. (3) .. "f", roundingNumber)))

2

math.floor((x * 1000) + 0.5) / 1000

0

Thank You Zafirua!