- float scale = 34.236323;
- DecimalFormat fnum = new DecimalFormat("##0.00");
- String dd=fnum.format(scale);
java float保留多位小数
猜你喜欢
转载自blog.csdn.net/guankai1990/article/details/71194256
今日推荐
周排行