java.text.DecimalFormat   df   =new   java.text.DecimalFormat("##.####");
String num = "777777777777.3300";
System.out.println(df.format(Float.parseFloat(num)).toString());
结果却是777777774592,我需要的结果是777777777777.33,即是最多保留最多四位小数,尾数为0的去掉
不知什么原因,而且对DecimalFormat方法不是很熟悉,查api说的也不是很清楚