i've run into quite an issue with localizedStringWithFormat running iPhone OS 3.1.
if you run the above code with the device's regional format set to United States, you get the following output:
but if you run the above code with the device's regional format set to French, you get the following output:
shouldn't it display 1,53 (note the comma)?! where is 1.00 coming from?!
Code:
NSString *size = [NSString localizedStringWithFormat:@"%f", 1.53489];
NSLog(@"%.2f", [size floatValue]);
if you run the above code with the device's regional format set to United States, you get the following output:
Code:
1.53
but if you run the above code with the device's regional format set to French, you get the following output:
Code:
1.00
shouldn't it display 1,53 (note the comma)?! where is 1.00 coming from?!