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
kiyonisis
Newbie


Joined: 22 Mar 2005
Posts: 5

PostPosted: Tue Mar 22, 2005 6:16 pm   

Converting a number with commas
 
My mud outputs must numbers with commas, which is preventing me from capturing those numbers in a way that i can preform math functions on them. How can I convert a number such as, 32,904 to 32904? I looked through the helpfiles and found a way to make a number display with commas, but not how to reverse that operation.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Tue Mar 22, 2005 6:37 pm   
 
%replace("32,904", ",", "")
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Mar 22, 2005 8:55 pm   
 
Capture them with (%n) instead of (%d)
_________________
Zmud Support Library
Zmud Knowledge Base
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