Easiest way to format a number with thousand separators to an NSString according to the Locale

Viewed 24173

I can't seem to find an easy way to do it. The exact thing I need is:

[NSString stringWithFormat:@"%d doodads", n];

Where n is an int. So for 1234 I'd want this string (under my locale):

@"1,234 doodads"

Thanks.

5 Answers
Related