O
Olumide
Hello,
I recently had a colleague introduce me to the variable macro
DBL_EPSILON and the function _isnan(), because some of my functions
return 1.#QNANO values. However, I'm not sure of of how best to use
DBL_EPSILON and _isnan(). Which is the better way to test for a small
double:
Method 1: _isnan( really_small_double );
Method 2: if( really_small_double < DBL_EPSILON ) // do stuff
Thanks,
- Olumide
I recently had a colleague introduce me to the variable macro
DBL_EPSILON and the function _isnan(), because some of my functions
return 1.#QNANO values. However, I'm not sure of of how best to use
DBL_EPSILON and _isnan(). Which is the better way to test for a small
double:
Method 1: _isnan( really_small_double );
Method 2: if( really_small_double < DBL_EPSILON ) // do stuff
Thanks,
- Olumide