• 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
Re: NSDecimalNumber queries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSDecimalNumber queries (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: NSArray's objectAtIndex compiles to objectAtIndexedSubscript?
  • Next by Date: Re: Best way to make Finder/Mail style toolbars?
  • Previous by thread: NSDecimalNumber queries
  • Next by thread: Re: NSArray's objectAtIndex compiles to objectAtIndexedSubscript? SOLVED
  • Index(es):
    • Date
    • Thread