Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

string format comma c#

String.Format("{0:n}", 1234);  // Output: 1,234.00
String.Format("{0:n0}", 9876); // No digits after the decimal point. Output: 9,876
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #format #comma
ADD COMMENT
Topic
Name
1+4 =