int totalFee = (int)(Double.parseDouble(paramMap.get("totalFee").toString())*100);

     int totalFee = (int)(Float.parseFloat(paramMap.get("totalFee").toString())*100);

 

第二种写的时候有时会使数据值变小;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-05-22
  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-12-22
  • 2022-01-18
  • 2022-12-23
  • 2021-10-31
相关资源
相似解决方案