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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com