double涉及大数据的时候会变成科学计数法
时间:2019-05-19 23:56:42
收藏:0
阅读:768
double b=1.23456789128E8
DecimalFormat df = new DecimalFormat("0.00");//精度自己控制保留几位小数点 String c= df.format(b);
System.out.println(c);
输出123456789.13
原文:https://www.cnblogs.com/oldzhang1222/p/10891547.html
评论(0)