Re: real noob question
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