I have just a basic question that why there are discrepancies between the below statements?
System.out.printf("%.2f \n", 55050000.41f);
System.out.printf("%.2f \n", 50.41f);
Output
55050000.00
50.41
The first statement removed a decimal value and why not for 2nd statement?