Thursday, May 19, 2011

C#: Format number to string with comma separated with thousand place

int number = 1000000000;
string whatYouWant = number.ToString("#,##0");
//You get: 1,000,000,000

No comments: