I was trying to format a number 173910234.23 to something like 17,39,10,234.23. Here only the first thousand separator is after three digits. But after that all separators (,) are after two digits. I have tried the following -
double d = 173910234.23;
Console.WriteLine(string.Format("{0:#,##,##,###.00}", d));
but it gives output with comma after every three digits, 173,910,234.23
How can I achieve the format 17,39,10,234.23 using string.Format?
17,39,10,234.23or1,73,91,02,34.2317,39,10,234.23. I am sure.