I am calculating with percentage and I just divide a number by 10 and multiply by 100. Before the operation I cast to float.
So:
System.out.println((float)5/10*100);
System.out.println((float)6/10*100);
System.out.println((float)7/10*100);
And I got these:
50.0
60.000004
70.0
The question is why and how did the 60 get 4 millionths?