Possible Duplicate:
Java floating point arithmetic
What is special about this double math in Java? I would expect the answer of .9 - 1 to be -0.1, however the response is -0.09999999999999998
double a = 0.9;
double b = 1.0;
double c = a - b;
System.out.println(c);
>>-0.09999999999999998