//单位:万
n = 814308678.00;
n = Math.floor((n /10000) * 100) / 100; //保留小数点两位
//n = parseInt((n /10000) * 100 / 100); //取整
n = n + "万";

结果:
//81430.86万 //81430万 //单位:亿 n = 814308678.00; n = Math.floor((n /100000000) * 100) / 100; //保留小数点两位 //n = parseInt((n /1000000000) * 100 / 100);// 取整 n = n + "亿";
结果:
//8.14亿 //8亿

 

相关文章:

  • 2022-02-19
  • 2021-12-20
  • 2021-10-12
  • 2022-12-23
  • 2021-11-25
  • 2021-06-25
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
相关资源
相似解决方案