NumberFormat format= new DecimalFormat("#0.00"); double d=3.22522222; format.format(d); System.out.println(format.format(d));