NaN to Zero in Floating Point?
Is there a way to set a result of NaN (not a number) to equate to 0? I''m getting a problem where a floating point value is getting decremented to such a small amount that it eventually becomes NaN, instead of 0.0f. So the problem here is underflow. Does anyone know a way to prevent this from happening? Is there a setting anywhere that could be causing this?
Thanks...
Vyvyan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement