Re: NSString localizedStringWithFormat: and thousand separators
Re: NSString localizedStringWithFormat: and thousand separators
- Subject: Re: NSString localizedStringWithFormat: and thousand separators
- From: Graham Cox <email@hidden>
- Date: Tue, 25 Jan 2011 09:59:13 +1100
On 25/01/2011, at 9:51 AM, Nala Gnirut wrote:
> I'm getting the same results with
>
> NSString *test = [NSString localizedStringWithFormat:@"%'6.2f",
> 900000.55];
> NSLog(@"Test: %@", test);
>
> Output is:
>
> Test: '6.2f
That's because you have placed the format specifier inside quote marks. Remove them and try again.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden