1,显示带美元货币符号的数字。

      如图:

Format 根据当前区域文化来显示带有货币符号的数字。

 

代码如下:

1   int digital = 123456;
2             CultureInfo di = new CultureInfo("en");
3             Console.WriteLine(digital.ToString("c",di));

相关文章:

  • 2021-07-17
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2021-11-19
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案