• 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: NumberFormatters and sci notation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: NumberFormatters and sci notation (From: Greg Herlihy <email@hidden>)

  • Prev by Date: Re: Returning an executable in a framework
  • Next by Date: Re: does NSMenuItem setMixedStateImage or setOnStateImage work?
  • Previous by thread: Re: NumberFormatters and sci notation
  • Next by thread: Lightweight view & NSTextInput
  • Index(es):
    • Date
    • Thread