• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSString localizedStringWithFormat: and thousand separators
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString localizedStringWithFormat: and thousand separators


  • Subject: NSString localizedStringWithFormat: and thousand separators
  • From: Nala Gnirut <email@hidden>
  • Date: Fri, 21 Jan 2011 12:21:35 +0100

Hi all,
according to Apple's documentation, localizedStringWithFormat supports
format specifiers as detailed in IEEE printf
specification<http://pubs.opengroup.org/onlinepubs/009695399/functions/printf.html>
.

Unfortunately, a simple test does not seem to work as expected when using '
to request formatting with thousands' grouping character:

NSLog(@"Test: %'6.2f", 900000.55);

Does localizedStringWithFormat support this or do I need to rely on
NSFormatter?

Thanks in advance.
_______________________________________________

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

  • Follow-Ups:
    • Re: NSString localizedStringWithFormat: and thousand separators
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: NSBlockOperation with +[sendSynchronousRequest sendSynchronousRequest:...] or async?
  • Next by Date: Re: Gestures
  • Previous by thread: Re: Problem with garbage collection in server application
  • Next by thread: Re: NSString localizedStringWithFormat: and thousand separators
  • Index(es):
    • Date
    • Thread