I tried to format the number 173910234.23into something like 17,39,10,234.23. Here, only the first thousand separators after three digits. But after that all the delimiters ( ,) are after two digits. I tried the following -
double d = 173910234.23;
Console.WriteLine(string.Format("{0:#,##,##,###.00}", d));
but it gives a semicolon after every three digits, 173,910,234.23
How to achieve format 17,39,10,234.23with string.Format?
source
share