• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >(no subject) (From: Ronny Reichmann <email@hidden>)
 >Re: (no subject) (From: Hank Heijink <email@hidden>)

  • Prev by Date: Re: Should I do loops in reverse order ?
  • Next by Date: Re: Should I do loops in reverse order ?
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread