I want to add a comma in the thousands place for a number.
(我想在数千个数字中添加一个逗号。)
String.Format()
(String.Format()吗?)
String.Format("{0:n}", 1234); // Output: 1,234.00 String.Format("{0:n0}", 9876); // No digits after the decimal point. Output: 9,876
1.4m articles
1.4m replys
5 comments
57.0k users