Decimal problem -1.#IND
In my programme for an optimation problem, my need to divide a function by a number smaller than 0.000001 couldn't be done by the default setting in C because the result turn out to be "-1.#IND". How can I make some changes to solve the problem?
Based on your limited info, I would suggest using a long double. I need to see some code to be more specific or at least better specs
that happens because in your programme the 0.000001 is being treated like zero, and division by zero results in error. That's what being printed -1.#IND less infinte.