📜  c# 将 int 转换为漂亮的字符串 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:10.294000             🧑  作者: Mango

代码示例1
//converting 1700 to 1,700


Console.WriteLine(1700.ToString("##,##", new NumberFormatInfo() { NumberGroupSeparator = "," })); 

//output:
//1,700