Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

coolman

macrumors newbie
Original poster
Jul 12, 2008
21
0
La Coruna, Spain
Hi,

I would like to format numbers into a string so I tried this

NSString *myString = [NSString localizedStringWithFormat:mad:"%5.2f", 1234.56];

but myString gives me 1234.56

For Spain this must give me 1.234,56
and for us locale 1,234.56

I want the dots or commas each three digits.

How can i do this in a quick (execution speed) way?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.