1
2
3
DecimalFormat dcmFmt = new DecimalFormat("0.00");  
double db = 12333.353;
System.out.println(dcmFmt.format(db));