PDA

View Full Version : How Do I Round To 2 Decimals?


HikariMisako
11-06-2009, 06:31 AM
Title says it all here.
I would like to display the time people get in my racing game with 2 decimals.
So if the time is 121.657333333, i would like to display 121.65 seconds.
But there is no such function as far as i can see.

Thanks in advance,

HikariMisako

x2495iiii
11-06-2009, 01:26 PM
To my knowledge, there isn't, but you could always multiply the time by 100, round it, then divide it by 100 again. That'd do the same thing.

HikariMisako
11-08-2009, 04:04 AM
But ofcourse :D
Thanks man.