Re: isnan()
Re: isnan()
- Subject: Re: isnan()
- From: Markus Hitter <email@hidden>
- Date: Sat, 10 Jul 2004 00:00:47 +0200
Am 09.07.2004 um 21:59 schrieb Bryan Pietrzak:
How do I use isnan in a project?
The man page says: #include <math.h>. Usually the man page is correct.
For other cases, you might want to put this little function into your
.bashrc:
function locateheader {
locate \*.h | while read F; do
if fgrep $1 "$F" 2>/dev/null; then echo "$F";
fi;
done
}
Then, "locateheader isnan" gives architecture/ppc/math.h which is
included by math.h
I have #include <math.h> ... I still get an error ...
Looking into /usr/include/architecture/ppc/math.h, nothing obvious pops
into sight, the definition is in there:
#define isnan( x ) ( ( sizeof ( x ) == sizeof(double) ) ?
\
__isnand ( x ) :
\
( sizeof ( x ) == sizeof( float) ) ?
\
__isnanf ( x ) :
\
__isnan ( x ) )
I'd recheck with some simple test case and by looking into
preprocessors output.
HTH,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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: | |
| >isnan() (From: Bryan Pietrzak <email@hidden>) |