I\'m wondering what is the difference for comparing two double between this two manner :
double a1 = ...; double a2 = ....;
This article answers your question quite thoroughly, I think. You might want to skip ahead to the section "Epsilon comparisons".