Because of floating point approximation. Debug it to see that is the exact value of the variable a