consider having a float number in java like this:
float f = 2000000000f;
After addition of number 64 the result is the same number:
System.out.println(String.format("%.0f", (f+64f)));
Result: 2000000000
After addition of number 65 the result is completely different:
System.out.println(String.format("%.0f", (f+65f)));
2000000128
can somebody explain to me why does this work like this? thanks