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

How do i round up like this? (in desc)

So im trying to make a time diffrence thing and i would like to round it up to miliseconds so it outputs 0.51498030000948 from my code: local firstTime = os.clock() wait(0.5) print(math.abs(firstTime - os.clock())) So example 0.51498030000948 to 0.514. Second example 5.55478638500944 to 5.554.

1 comment

0

edited my answer

1 answer

✓ Accepted answer
math.floor((0.526126311 * 1000) / 1000) -- .526

6 comments

0

I dont want it in seconds i want it in miliseconds from this 0.7351539000083

0

ok edited

0

ok edited

0

alright thanks

0

if it works pls accept so we both get rep

0

ty!

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