It's annoying that division by 0 causes an error even in case of floats. I found a workaround for declaring infinity (const float INFINITY=1.0e+39; ), but, besides the fact it looks ugly, there are cases when division by 0 is more appropriate or shortens code, and I still didn't find a way to declare a NaN if I can't use 0.0/0.0 .
I don't know if it can be fixed but I would be thankful if it were taken care of.
__________________
I am an official JJ2+ programmer and this has been an official JJ2+ statement.
|