Re: unsigning NSNumber
Re: unsigning NSNumber
- Subject: Re: unsigning NSNumber
- From: Graham Cox <email@hidden>
- Date: Sun, 27 Jul 2008 14:45:29 +1000
On 27 Jul 2008, at 2:48 am, Justin Giboney wrote:
Multiply by -1
No, that's not the same as fabs(x). If the number is already +ve, *-1
it will make it -ve. fabs(x) makes -ve numbers +ve, but not vice versa.
In any case you can't multiply NSNumber by anything - it's immutable.
Graham
_______________________________________________
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