标签:java strong for new sp on c app print
DecimalFormat format = (DecimalFormat) NumberFormat.getPercentInstance();
format.applyPattern( "#####0 ");
String temp = format.format(Double.MAX_VALUE);
System.out.println(temp);
double a; // test
DecimalFormat df = new DecimalFormat( "###############0.00 ");// 16位整数位,两小数位
String temp = df.format(a);
System.out.println(temp);
java中Double类数字太大时页面正常显示而不要用科学计数法
标签:java strong for new sp on c app print
原文地址:http://www.cnblogs.com/mingforyou/p/3930650.html