How do I force 0.0/0.0 to return zero instead of NaN in MIPSPro C compiler?

Posted by Derek on Stack Overflow See other posts from Stack Overflow or by Derek
Published on 2010-04-01T20:23:55Z Indexed on 2010/04/01 23:43 UTC
Read the original article Hit count: 252

Filed under:
|

As the question states, I am using the MIPSPRo C compiler, and I have an operation that will return NaN for some data sets where both the numerator and denom are zero. How do I keep this from happening?

© Stack Overflow or respective owner

Related posts about nan

Related posts about c