Re: iOS From 1,99 To 1.99

2011-12-29 Thread Sandro Noël
Jens, thanks for replying. a, It's a convert From local, not Convert To local !!! I won't soon forget this one :) Sandro. On 2011-12-29, at 6:22 PM, Jens Alfke wrote: > > On Dec 29, 2011, at 1:39 PM, Sandro Noël wrote: > >> NSLocale *locale = [[NSLocale alloc]initWithLocaleIdentifier:@"en

Re: iOS From 1,99 To 1.99

2011-12-29 Thread Jens Alfke
On Dec 29, 2011, at 1:39 PM, Sandro Noël wrote: > NSLocale *locale = [[NSLocale alloc]initWithLocaleIdentifier:@"en_US"]; You're trying to parse a Canadian-format string, but initializing the formatter with the US locale. You probably want something like "fr_CA" (since I'm assuming this is a Q

iOS From 1,99 To 1.99

2011-12-29 Thread Sandro Noël
Greetings! This is simple I'm sure and I'm just missing the proper class to do it. I need to convert a string representation from Canadian local to US Local. 1,99 to 1.99 The model is a float called quantity. >From that model I pick up the value and display a localized representation of >that f