Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
fattony
Apprentice


Joined: 27 Dec 2001
Posts: 105
Location: USA

PostPosted: Fri Jun 21, 2002 7:21 pm   

Numbers
 
This probably won't make any sense, but I'm looking for a way to display numbers differently, based on their value. I already have them divided in to "k" (1000), but if the number reaches over 1 million, it displays as 1000k. I would like to make it display as 10k if its 10000, and 1m if its 1000000. Even better would be if I could display it as 1.23m (1230000). Hope that makes some sense, and thanks for any help you can give.

Fat Tony
Reply with quote
Apollyon
Wanderer


Joined: 02 Oct 2001
Posts: 76
Location: USA

PostPosted: Fri Jun 21, 2002 7:33 pm   
 
make in #IF statement checking if the number before the "k" is >999, then if it is make it into a "m" number, just make the "m" alias/trigger/whatever the same way you make the "k" one, don't know how to write #IF statements i would do it for ya, but i cant, so i wont, dont have any clue as to how to make the decimals tho, if this were Java it would be a different story tho...

Apollyon
Reply with quote
fattony
Apprentice


Joined: 27 Dec 2001
Posts: 105
Location: USA

PostPosted: Fri Jun 21, 2002 7:38 pm   
 
Tinkered around with it a little more and got it, thanks for your time. :)

Fat Tony
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net