• 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
Negative zero and NSNumberFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Negative zero and NSNumberFormatter


  • Subject: Negative zero and NSNumberFormatter
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 27 Feb 2009 11:49:09 -0500
  • Organization: Rogue Research Inc.

Hi all,

I am displaying some floating point numbers to the user using
NSNumberFormatter.  It will sometimes show "0.0" and sometimes "-0.0".
For an end user (oblivious to the details of IEEE754), this is silly.

How can I make it display "0.0" instead of "-0.0"?  (In a localisation
friendly way of course.)

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

  • Prev by Date: Re: Why doesn't this work on my device?
  • Next by Date: Re: Why doesn't this work on my device?
  • Previous by thread: CATiledLayer synchronization problem
  • Next by thread: enabling Edit menu items in a modal window?
  • Index(es):
    • Date
    • Thread