Alice Community

Alice Community (
-   How do I...? (
-   -   How Do I Round To 2 Decimals? (

HikariMisako 11-06-2009 06:31 AM

How Do I Round To 2 Decimals?
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,


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.

All times are GMT -5. The time now is 05:52 PM.

Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.