Re: NSNumberFormatter scientific notation and fraction digits
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