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

Comments

Popular posts from this blog

Error 401.1 "Unauthorized: Access is denied due to invalid credentials"

SQL Server 2005: MUST_CHANGE is ON