float f = 0.55555f
String str = String.format("%.2f", f);
System.out.println("str = " + str);

+ Recent posts