• 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
How can I stop NSNumberFormatter (via Pallet) from always rounding to two decimal places?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I stop NSNumberFormatter (via Pallet) from always rounding to two decimal places?


  • Subject: How can I stop NSNumberFormatter (via Pallet) from always rounding to two decimal places?
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Sun, 13 Mar 2005 10:53:09 -0800

Greetings:
The default NSNumberFormatter from the pallet always insists on having ONLY two-digit decimals.


For Example:

Input: 12345.6789
Format Pattern: ###,###,###,###,##0.#####
Output: 12,345.68

Desired output: 12,345.6789

That pattern doesn't seem to have much influence.
How can I just put commas in, without ROUNDING?

Regards,

Ric.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How can I stop NSNumberFormatter (via Pallet) from always rounding to two decimal places?
      • From: Justin Spahr-Summers <email@hidden>
  • Prev by Date: Re: Can't launch carbon XEmacs
  • Next by Date: Re: Mac OS X Programming
  • Previous by thread: Re: controller class for NSPanel
  • Next by thread: Re: How can I stop NSNumberFormatter (via Pallet) from always rounding to two decimal places?
  • Index(es):
    • Date
    • Thread