Re: NumberFormatters and sci notation
Re: NumberFormatters and sci notation
- Subject: Re: NumberFormatters and sci notation
- From: Graham J Lee <email@hidden>
- Date: Thu, 19 Jan 2006 16:53:14 +0000
On 19 Jan 2006, at 15:57, Greg Herlihy wrote:
To specify the precision of the mantissa with a 10.4 number
formatter, use
the -setMaximumFractionDigits and -setMinimumFractionDigits
methods. In this
case setting both to 4:
[fmt setMaximumFractionDigits:4];
[fmt setMinimumFractionDigits:4];
Great! That does just what I need [sadly I'd already started
implementing the custom formatter, but my version's got additional
flexiness so I might finish it off]. Final question on formatters
(for the moment, at least): to attach equivalent formatters to a
number of fields, can I use the same instance or should I -copy it?
Thanks,
Graham.
--
Graham Lee GPG Key ID: 01D5B9D8
UNIX Systems Manager,
Oxford Physics Practical Course
http://users.ox.ac.uk/~wadh1342 01865 273450
_______________________________________________
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