import java.text.DecimalFormat;

String addGold = String.valueOf(new DecimalFormat("0").format(0.85*100));

System.out.print(addGold);//85

 

String addGold = String.valueOf(new DecimalFormat("0.00").format(0.84*100));

System.out.print(addGold);//85.00

 

 

相关文章:

  • 2022-12-23
  • 2021-07-15
  • 2021-08-03
  • 2021-05-16
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2021-08-11
  • 2021-09-05
  • 2022-03-01
  • 2022-01-18
  • 2021-10-30
  • 2021-10-10
  • 2022-12-23
相关资源
相似解决方案