I want to convert a number (with a comma separating 1000s) such as 1,220 to a decimal. Without the comma I am just doing
[numberString doubleValue]
Is there a simple NSNumberFormater to have it recognize the comma as part of the number and not a "character" so the answer I get is 1220?
I used this:
myNewString = [myNewString stringByReplacingOccurrencesOfString:@"," withString:@""];
quote = [myNewString doubleValue];
Is this the best way? Is there another cleaner method?