• 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: simple float/double question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple float/double question


  • Subject: Re: simple float/double question
  • From: lbland <email@hidden>
  • Date: Fri, 30 May 2003 10:50:12 -0400

On Friday, May 30, 2003, at 08:37 AM, Andrew Pinski wrote:

Even quicker way and faster way because you do not have load in a floating point constant.

if (x!=x)
{
// x is Nan
}

man isnan

The isinf() function returns 1 if the number is ``infinity'', otherwise
0.

The isnan() and isnanf() functions return 1 if the double or float
(respectively) is ``not-a-number'', otherwise 0.



Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: simple float/double question (From: Andrew Pinski <email@hidden>)

  • Prev by Date: Re: Sending AppleEvent from Carbon To Cocoa App
  • Next by Date: Re: How do I create system wide CMM's
  • Previous by thread: Re: simple float/double question
  • Next by thread: Re: simple float/double question
  • Index(es):
    • Date
    • Thread