While running kmeans clustering in java the absolute difference between the data points 0.33 and 0.99 is displayed as 0.659999999 instead of 0.66.
Why is that?
Both the variables holding the data are of type double and I am using the Math.abs() function.
I saw such a problem only for 0.99. When subtracting using other values, the results were fine.
Thanks for any help