Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { public static double save2(Double ori) { DecimalFormat df = new DecimalFormat("#0.00"); String x = df.format(ori); return Double.valueOf(x); } }