float格式 小数点后面保存几位

java.text.DecimalFormat numberformat = new java.text.DecimalFormat("#,##0.00");

    推荐阅读