• 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: NSNumber's integer approximation of Positive Infinity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber's integer approximation of Positive Infinity


  • Subject: Re: NSNumber's integer approximation of Positive Infinity
  • From: John Stiles <email@hidden>
  • Date: Wed, 24 May 2006 16:08:43 -0700

This doesn't sound like a good thing to rely on.
I can certainly see the value of ((int)INFINITY) being architecture- dependent. I suspect the C standard leaves it undefined (not sure though).



On May 24, 2006, at 3:47 PM, Gabriele de Simone wrote:

I just noticed that the following invocation:

[((NSNumber *) kCFNumberPositiveInfinity) intValue]

returns 0x7FFFFFF on PowerPC (good) and 0x8000000 on Intel (bad). One would expect that the NSNumber approximation of positive infinity would return identical values on both architectures. Is this a bug, or am I missing some piece of information?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSNumber's integer approximation of Positive Infinity
      • From: Chris Suter <email@hidden>
References: 
 >NSNumber's integer approximation of Positive Infinity (From: Gabriele de Simone <email@hidden>)

  • Prev by Date: NSNumber's integer approximation of Positive Infinity
  • Next by Date: Re: NSNumber's integer approximation of Positive Infinity
  • Previous by thread: NSNumber's integer approximation of Positive Infinity
  • Next by thread: Re: NSNumber's integer approximation of Positive Infinity
  • Index(es):
    • Date
    • Thread