R
Rudy Ray Moore
How do I test a float for NaN (or other weird garbage) without messing up my
FPU or throwing exceptions or other bizarro things?
I'm using VS6
Thanks,
Rudy
===
float f;
SetFloatToFunnyValue(&f);
if( IsFunnyValue(f) )
{
f = 0.0f;
}
FPU or throwing exceptions or other bizarro things?
I'm using VS6
Thanks,
Rudy
===
float f;
SetFloatToFunnyValue(&f);
if( IsFunnyValue(f) )
{
f = 0.0f;
}