保存小数点后指定位数

来源:互联网 发布:黄龄 知乎 编辑:程序博客网 时间:2024/05/18 00:31

DecimalFormat df =new DecimalFormat( "0.00 ");

String str = df.format(ssSum) ;