I'm having trouble debugging my code. There are float variables that mysteriously get NaN's. Is there a way to make the program to halt whenever some result is NaN? In debug mode, that is. I have no idea where the bug is, so this halting needs to be global (supported by debugger).
I assume that in my case NaN is 'division by zero' since I don't use much of the math functions. What are the other cases when the result could be NaN? Log() with a negative number could be such?
I assume that in my case NaN is 'division by zero' since I don't use much of the math functions. What are the other cases when the result could be NaN? Log() with a negative number could be such?