DecimalFormat df = new DecimalFormat( "0.## ");
Float si=mfile.getSize()/1024f/1024f;
System.out.println(df.format(si)+"M");
已遷址已遷址http://www.cnblogs.com/live365wang/ |
DecimalFormat df = new DecimalFormat( "0.## ");
Float si=mfile.getSize()/1024f/1024f;
System.out.println(df.format(si)+"M");