I'd like to group the digits in a double by thousands, but also output however number of decimals are actually in the number. I cannot figure out the format string.
1000 => 1,000
100000 => 100,000
123.456 => 123.456
100000.21 => 100,000.21
100200.123456 => 100,200.123456
Disclaimers (it's not as straight forward as you think):
- Please do not point me to this question it does not answer my question
- Please do not point me to MSDN, the articles have not helped me. (If you believe I'm reading them incorrectly, read them yourself and post the correct answer)
.ToString("n")
does not work, it rounds the digits