Re: Problem with NSDecimalNumber truncating zeros
Re: Problem with NSDecimalNumber truncating zeros
- Subject: Re: Problem with NSDecimalNumber truncating zeros
- From: Kyle Sluder <email@hidden>
- Date: Mon, 6 Jul 2009 19:51:59 -0700
On Mon, Jul 6, 2009 at 7:04 PM, WT<email@hidden> wrote:
> NSDecimalNumbers would be useless, if that were true. The whole point of
> having NSDecimalNumbers is to be able to preserve precision.
Seems like you're confusing precision with sigfigs. NSDecimalNumbers
exist because IEEE floating point doesn't represent a useful subset of
the real numbers when doing base-10 arithmetic. They are not
arbitrary-precision, sigfig-retaining numbers.
--Kyle Sluder
_______________________________________________
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