看来N会包含数千个分隔符,而0.00则不会。

N2将以500.00的方式工作,但是当您有5000.00时,N2将显示为

5,000.00

代替

5000.00

 

If you do this instead: 0.ToString("0.##"); you get: 0

Interestingly, if you do this: 0.ToString("#.0#"); you get: .0

If you want all three digits: 0.ToString("0.00"); produces: 0.00

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2021-05-22
  • 2021-09-19
  • 2021-07-10
  • 2021-08-08
  • 2021-09-05
  • 2022-12-23
相关资源
相似解决方案