How to set string in currency format to normal number format in iphone? i have a number in currency format say “Rs 10,000” or “$ 1000,000”.now i am saving this in my database as a string in normal number format like “10000” or “1000000” ..so how to convert it to this form.. because only with the latter string i can use [string intValue] for use in calculations
Share
Are you using a NSNumberFormatter to set the currency style according to the locale? If so just extract it as a NSNumber object: