As I said, the decimal type has an accuracy of 28-29 digits.
decimal mon = 1234.12345678901234567890123M; var monStr = mon.ToString("#,0.##############################"); var monStr2 = String.Format("{0:#,0.##############################}", mon);
Here, after the decimal separator, there is 30x # :-)
I changed one # to 0 so that 0.15 not written as .15 .
xanatos
source share