• 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: calling isnan
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling isnan


  • Subject: Re: calling isnan
  • From: Bill Northcott <email@hidden>
  • Date: Sun, 20 Feb 2005 09:57:18 +1100

On 20/02/2005, at 7:09 AM, Jerry <email@hidden> wrote:
The solution for any math library for C++ (such as libRmath) is to
program your own isnan() like function that access the underlying
system functions.

At the risk of moving off-topic: I've seen people checking for NaN by doing

if (!(x == x))
	.....

It sounds plausible, but is it always valid?

AFAIK that is undocumented and therefore should not be used.

Bill Northcott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Xcode's STL problem, works fine in MW
  • Next by Date: Re: Xcode's STL problem, works fine in MW
  • Previous by thread: Something is not getting cleaned...
  • Next by thread: PackageMaker: how to skip files
  • Index(es):
    • Date
    • Thread