format float decimal
String strDouble = String.format("%.2f", 2.00023); System.out.println(strDouble); // print 2.00