今天在上班中,发现服务器传过来的数据,*100后,小数点后面有很多数据,于是查了下资料。有以下解决了、

   DecimalFormat df   = new DecimalFormat("######0.00");
    df.format(mLoanRate * 100)

解决了问题。

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
猜你喜欢
  • 2021-06-20
  • 2021-12-31
  • 2022-12-23
  • 2022-01-19
  • 2021-09-09
  • 2021-07-28
  • 2021-08-07
相关资源
相似解决方案