Yesterday I asked this general question about decimals and their internal precisions. Here is a specific question about the scenario I\'m trying to address.
I have colu
To output your required format with n=3, you could use:
number.ToString("0.000###")
With n as a parameter, then you could build a custom string format:
string format = "0." + new string('0', n) + new string('#', 6 - n); s = number.ToString(format);