Negative zero and NSNumberFormatter
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