DecimalFormat df = new DecimalFormat( "0.## ");
Float si=mfile.getSize()/1024f/1024f;
System.out.println(df.format(si)+"M");
转载于:https://www.cnblogs.com/live365wang/archive/2011/03/24/1993724.html
DecimalFormat df = new DecimalFormat( "0.## ");
Float si=mfile.getSize()/1024f/1024f;
System.out.println(df.format(si)+"M");
转载于:https://www.cnblogs.com/live365wang/archive/2011/03/24/1993724.html