• 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: Where is isnan? (and isinf etc..)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is isnan? (and isinf etc..)


  • Subject: Re: Where is isnan? (and isinf etc..)
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 7 Jan 2004 21:10:27 -0800

On Jan 7, 2004, at 9:13 AM, Jeremy Bell wrote:

I find that isnan and isinf and related functions are defined in cmath but unfortunately are taken out by a preprocessor macro indicating something about C99. How can I get isnan defined, and is C99 really unstable as the comments say?

cmath is a C++ header, and isnan was built into C++ before it was standardized in C. That guard macro is basically saying "if you're using a sufficiently-modern C dialect, you don't need to define isnan as a C++ extension to C."


There are several definitions and implementations of isnan, but if you're using straight C/C++ you probably want the ones in /usr/include/math.h.

Chris Espinosa
Apple
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Where is isnan? (and isinf etc..) (From: Jeremy Bell <email@hidden>)

  • Prev by Date: Re: Where is isnan? (and isinf etc..)
  • Next by Date: Re: How do you pass command line parameters to debugged app?
  • Previous by thread: Where is isnan? (and isinf etc..)
  • Next by thread: Re: Where is isnan? (and isinf etc..)
  • Index(es):
    • Date
    • Thread