Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: John Stiles <email@hidden>
- Date: Mon, 27 Nov 2006 09:19:16 -0800
Wow, is this really true? I didn't realize NSNumbers couldn't
automatically convert their contents to the proper type as needed.
Hank Heijink wrote:
Get the value with -intValue, then cast it to a float or a double.
On Nov 27, 2006, at 5:13 AM, Ronny Reichmann wrote:
I created a NSNumber object with an int value. When I read out the
value as double or float it is completely different from the integer
value. How can I get the right value?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
Hank Heijink
www.hankheijink.com
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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