DecimalFormat df=new DecimalFormat("0.00");
price=new Double(df.format(price).toString());
Java 精确小数点后2位
最新推荐文章于 2021-03-13 21:16:35 发布

DecimalFormat df=new DecimalFormat("0.00");
price=new Double(df.format(price).toString());