double x = 2.03453654;DecimalFormat df = new DecimalFormat("0.00"); System.out.println(df.format(x));