Curtis L. Olson wrote:
In Linux isnan() is defined in math.h. Is this a portable function
(errr macro) available to everyone?
I need the following for IRIX:
#include ieeefp.h
Erik
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
Mac OS X has
You need to include math.h, and link with the standard C library --
libc (-lc)
int isinf(double);
int isnan(double);
int isnanf(float);
Thanks!
Ima
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
Curtis L. Olson said:
In Linux isnan() is defined in math.h. Is this a portable function (errr
macro) available to everyone?
It isn't listed here:
http://www.cppreference.com/
FWIW that doesn't sound like a good programming practices sort of function.
A quick test before executing
Jim Wilson wrote:
FWIW that doesn't sound like a good programming practices sort of
function. A quick test before executing division isn't very
expensive (no worse than an isnan).
Actually, untrapped division by zero produces a positive or negative
infinity, not a NaN. The idea of a NaN is
Hi,
On Mittwoch, 3. März 2004 19:19, Andy Ross wrote:
Actually, untrapped division by zero produces a positive or negative
infinity, not a NaN. The idea of a NaN is that it is never produced
as the result of an FPU operation involving non-NaN values. This is
actually a useful feature --
Andy Ross wrote:
Jim Wilson wrote:
FWIW that doesn't sound like a good programming practices sort of
function. A quick test before executing division isn't very
expensive (no worse than an isnan).
Actually, untrapped division by zero produces a positive or negative
infinity, not a NaN. The
In Linux isnan() is defined in math.h. Is this a portable function (errr
macro) available to everyone?
Curt.
--
Curtis Olson Intelligent Vehicles Lab FlightGear Project
Twin Cities[EMAIL PROTECTED] [EMAIL PROTECTED]
Minnesota http://www.menet.umn.edu/~curt
Curtis L. Olson wrote:
In Linux isnan() is defined in math.h. Is this a portable function (errr
macro) available to everyone?
I currently don't have a Linux box for a comparison but it appears to
me that it could work similarly on Solaris and AIX,
Martin.
--
Unix _IS_ user friendly - it's
On Mittwoch, 3. März 2004 04:51, Curtis L. Olson wrote:
In Linux isnan() is defined in math.h. Is this a portable function (errr
macro) available to everyone?
I do not remember which standard isnan is according to. I know that SunOS 5.4
and HP-UX 9, all systems from about 4 years ago or
Curtis L. Olson wrote:
In Linux isnan() is defined in math.h. Is this a portable function (errr
macro) available to everyone?
In the MSVC world, _isnan is defined in float.h, which is
included by math.h :
10 matches
Mail list logo