• 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: real noob question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: real noob question


  • Subject: Re: real noob question
  • From: Rob Keniger <email@hidden>
  • Date: Sun, 18 Jan 2009 14:52:54 +1000


On 18/01/2009, at 11:18 AM, Darren Stuart wrote:

Hi there, sorry for the real noobish question but I can't figure this out or find an answer.

I have a variable called myMoney and its a NSDecimalNumber and I want to set init it with the value of 23.30.

NSDecimalNumber *myMoney =  [[NSDecimalNumber alloc] init];

If this is the wrong place to post this sort of question please can someone point to such a place.

Kind Regards

Darren

You can't find an answer - have you had a look at the documentation? It's right there.


http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumber_Class/Reference/Reference.html

Have a look at Tasks -> Creating a Decimal Number.

[NSDecimalNumber decimalNumberWithMantissa:2330 exponent:-2 isNegative:NO]

[NSDecimalNumber decimalNumberWithString:@"23.30"]


-- Rob Keniger



_______________________________________________

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: 
 >real noob question (From: Darren Stuart <email@hidden>)

  • Prev by Date: Re: Find bindings
  • Next by Date: NSTableColumn not usable with binder of class NSTextValueBinder
  • Previous by thread: real noob question
  • Next by thread: Re: real noob question
  • Index(es):
    • Date
    • Thread