Re: NSDecimalNumber queries
Re: NSDecimalNumber queries
- Subject: Re: NSDecimalNumber queries
- From: "Gary L. Wade" <email@hidden>
- Date: Sun, 09 Mar 2014 09:00:06 -0700
The class NSDecimalNumber can already handle arithmetic operations. Look up its documentation directly.
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
> On Mar 9, 2014, at 4:34 AM, "email@hidden" <email@hidden> wrote:
>
> I require to use NSDecimalNumber extensively.
>
> When creating NSDecimalNumbers it is advised not to use the NSNumber subclass initWithXXX methods:
> http://www.cocoabuilder.com/archive/cocoa/227178-question-on-estimating-arraywithcapacity.html#227253
> I presume that this still applies.
>
> To me it would seem that there is ample scope for a decent NSDecimalNumber category providing factory and convenience methods.
> Adding lists of objects for example:
>
> - (void)addDecimalNumbers:(NSDecimalNumber *)number, … NS_REQUIRES_NIL_TERMINATION;
>
> Is anybody aware of a useful pre-existing NSDecimalNumber category?
>
> My searches have turned up:
> https://github.com/jmoody/LJS/blob/master/Categories/Foundation/NSDecimalNumber+LjsAdditions.m
>
> Jonathan
_______________________________________________
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