Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# convert int to pretty string

//converting 1700 to 1,700


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

//output:
//1,700
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #int #pretty #string
ADD COMMENT
Topic
Name
8+3 =