double b=1.23456789128E8
DecimalFormat df = new DecimalFormat("0.00");//精度自己控制保留几位小数点 String c= df.format(b);
System.out.println(c);

输出123456789.13

 

相关文章:

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