Using the below code I am formatting the double number with group seperator like if the number is 5000, it should display like 5,000 and if the number is only 5 it should display only 5 but here its displaying 05 how can I avoid this?
double doubleNumTest = 5;
string str = doubleNumTest.ToString("0,0", CultureInfo.InvariantCulture);