• 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: Getting a handle on inf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a handle on inf


  • Subject: Re: Getting a handle on inf
  • From: Andrew Farmer <email@hidden>
  • Date: Mon, 26 Oct 2009 18:41:28 -0700

On 26 Oct 2009, at 12:11, Ian Piper wrote:
...and I still get a failed build with this message:

Expecting inf; we got inf

Which seems odd.

And internally, this is because the IEEE float machinery guarantees that all infinite and NaN values compare as not-equal to each other, so that 1/0 != 2/0, 1e100 != 1e100 + 1, and so on. Sadly, this also means that some floats will compare as not equal to themselves -- an unfortunate, but necessary result.
_______________________________________________


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


  • Follow-Ups:
    • Detecting a network connection
      • From: colors <email@hidden>
References: 
 >Getting a handle on inf (From: Ian Piper <email@hidden>)
 >Re: Getting a handle on inf (From: Greg Parker <email@hidden>)
 >Re: Getting a handle on inf (From: Ian Piper <email@hidden>)

  • Prev by Date: Re: keyPathsForValuesAffectingValueFor<key>: not updating immediately
  • Next by Date: Re: keyPathsForValuesAffectingValueFor<key>: not updating immediately
  • Previous by thread: Re: Getting a handle on inf
  • Next by thread: Detecting a network connection
  • Index(es):
    • Date
    • Thread