Hi,

How does one detect errors in math library routines using only methods available in the C/C++ standard libraries?

For example:

double rslt = sqrt(-36);

I know that in Windows there are numerous ways to do this using errno, _matherr, _isnan etc, but all these are not generally portable.

Any help would be great?