DecimalFormat df = new DecimalFormat( "0.## "); 
Float si=mfile.getSize()/1024f/1024f;
System.out.println(df.format(si)+"M");

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-08-17
猜你喜欢
  • 2021-09-27
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案