private static final java.text.DecimalFormat df = new java.text.DecimalFormat("#.##");

#.## 写成 #.00 的话,如果是 0.119 则会返回 .12 ,会丢失 个位数的 0 !!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2021-12-09
  • 2021-06-29
  • 2021-07-04
猜你喜欢
  • 2021-09-26
  • 2022-02-09
  • 2021-11-03
  • 2021-05-16
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案