of course I know I should write better code which just not create NaN values. But is there any casual method to avoid it. I mean something like:
if (!(floatNumber == NaN))
// do some stupid function
else
return;
But it doesn't work for me. I also tried floatNumber==null
, but also no result.
Could you please help me?