c# convert int to pretty string

38

c# convert int to pretty string -

//converting 1700 to 1,700


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

//output:
//1,700

Comments

Submit
0 Comments