c# convert int to pretty int code example
Example: c# convert int to pretty string
//converting 1700 to 1,700
Console.WriteLine(1700.ToString("##,##", new NumberFormatInfo() { NumberGroupSeparator = "," }));
//output:
//1,700
//converting 1700 to 1,700
Console.WriteLine(1700.ToString("##,##", new NumberFormatInfo() { NumberGroupSeparator = "," }));
//output:
//1,700