• 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
Re: NSNumberFormatter scientific notation and fraction digits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumberFormatter scientific notation and fraction digits


  • Subject: Re: NSNumberFormatter scientific notation and fraction digits
  • From: Quincey Morris <email@hidden>
  • Date: Sun, 27 Feb 2011 14:07:48 -0800

On Feb 27, 2011, at 13:42, email@hidden wrote:

> [self.formatter setMaximumFractionDigits:3];
> [self.formatter setMinimumFractionDigits:3];

The documentation describes these as affecting "input" to the number formatter, which presumably means strings being interpreted as numbers, and not numbers being formatted as strings.

> I also tried call -setMaximumSignificantDigits:4 but this did not seem to improve the situation.

This one does seem to be for output, not input. Did you also 'setUsesSignificantDigits:YES'? It looks like that's necessary.


_______________________________________________

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: NSNumberFormatter scientific notation and fraction digits
      • From: "email@hidden" <email@hidden>
References: 
 >NSNumberFormatter scientific notation and fraction digits (From: "email@hidden" <email@hidden>)

  • Prev by Date: NSNumberFormatter scientific notation and fraction digits
  • Next by Date: Accessibility in custom NSControl subclasses
  • Previous by thread: NSNumberFormatter scientific notation and fraction digits
  • Next by thread: Re: NSNumberFormatter scientific notation and fraction digits
  • Index(es):
    • Date
    • Thread