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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
HerenIstarian
Novice


Joined: 30 Oct 2005
Posts: 40

PostPosted: Wed Oct 12, 2011 4:29 pm   

Formating issue.
 
So I'm trying to format a number with commas into a number without commas. I know how to do the reverse and add commas with %format but I don't know if its possible to do the reverse with that. Any idea how I can do this?

To be clear I want to take 8,560,333 and turn it into 8560333 so I can use it as a variable for some math.
Reply with quote
ins0mnia
Novice


Joined: 23 Jan 2011
Posts: 42
Location: United States

PostPosted: Wed Oct 12, 2011 4:47 pm   
 
%subchar("8,560,333",",","")
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Wed Oct 12, 2011 4:48 pm   
 
Try %replace-ing them with nothing.
Reply with quote
HerenIstarian
Novice


Joined: 30 Oct 2005
Posts: 40

PostPosted: Wed Oct 12, 2011 8:41 pm   
 
Thank you!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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