the code:
Float f = Float.parseFloat(\"1.80\"); System.out.println(f);
prints \"1.8\" on screen. I need to keep the 0 in the float
\"1.8\"
That's simply a formatting issue:
System.out.printf("%.2f\n", f);