DecimalFormat df=new DecimalFormat("#.00000000"); System.out.println("Format:"+df.format(234.123456785)); 这里好象五是不入的