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
You should be able to do this by formatting the value as such:
var str = num.ToString("#0.000#####");
The number of 0
s determines the minimum number of digits, and the number of 0
s plus #
s the maximum number of digits. I'm not sure if you actually want the maximum, but I believe this is the closest you'll get. You could of course just set it to an arbitrary (large) number.