float x=1.2344
DecimalFormat df = new DecimalFormat();
df.applyPattern("0.00");
System.out.println(df.format(x));
DecimalFormat df = new DecimalFormat();
df.applyPattern("0.00");
System.out.println(df.format(x));
DecimalFormat df = new DecimalFormat();
df.applyPattern("0.00");
System.out.println(df.format(x));