I have the following code:
double x = 0; { ...do stuff ...} if(x == 0){ }
I was always taught that you shouldn\'t check floats for equal
double has positive and negative zero. == between positive zero and negative zero returns false. Also, == betwen two NaNs returns false.
==