Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How Do I Round To 2 Decimals? (http://www.alice.org/community/showthread.php?t=3344)

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,

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.


All times are GMT -5. The time now is 06:25 AM.

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