Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.