Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
How Do I Round To 2 Decimals?
Old
HikariMisako
Guest
 
Status:
Posts: n/a
Default How Do I Round To 2 Decimals? - 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
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 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.


(')>
   
Reply With Quote
Old
HikariMisako
Guest
 
Status:
Posts: n/a
Default 11-08-2009, 04:04 AM

But ofcourse
Thanks man.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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