Re: [NOOB] Finding Information (was: real noob question)
Re: [NOOB] Finding Information (was: real noob question)
- Subject: Re: [NOOB] Finding Information (was: real noob question)
- From: Michael Ash <email@hidden>
- Date: Tue, 20 Jan 2009 00:01:09 -0500
On Mon, Jan 19, 2009 at 2:57 PM, Brian Slick <email@hidden> wrote:
> I'm not sure this is a documentation failure as much as a language failure,
> at least in this case. Why isn't there an initWithInt: or initWithFloat:
> like in some other cases? THAT would have resulted in the documentation
> page leading to the correct answer. Mantissa? Come on.
I really don't see the problem with this. While Apple generally does a
good job of insulating you from the details of how things work
underneath, you still have to know *something* about how things are
built. NSDecimalNumber is fundamentally built around mantissa and
exponent. Thinking the document is inadequate because it relies on
these concepts would be like thinking that the NSString documentation
is inadequate because it relies on the concept of "character".
There are basically only three ways to make a variable NSDecimalNumber
that are mentioned in the documentation. If faced with this problem,
it sure seems to me that it would be worth investigating all of them
before giving up.
Mike
_______________________________________________
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