|
kiyonisis Newbie
Joined: 22 Mar 2005 Posts: 5
|
Posted: 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.
|
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Tue Mar 22, 2005 6:37 pm |
%replace("32,904", ",", "")
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Mar 22, 2005 8:55 pm |
Capture them with (%n) instead of (%d)
|
|
|
|
|
|