It is ok to do this?
double doubleVariable=0.0; if (doubleVariable==0) { ... }
Or this code would suffer from potential rounding problem
hmm... I think as long as the number has an exact binary fraction representation (like 0) the comparison is perfectly valid.