public class HelloWorld {
public static void main(String[] args) {
float amt = Float.valueOf("21111111.00");
System.out.printf("%f\n", amt);
}
}
Output is: 21111112.000000
Why is the float value being incremented by 1 automatically?