I have this:
textBoxNano.Text = stats.Nano.ToString();
The problem is when the stats.Nano (which is a double) gets with more digits, the textBoxNano displays it:
1E-06
What I want is to display larger numbers normally.Ex:
0.0000001
I tried to pass the .ToString("G10"); but nothing changed.
EDIT:
Ok I changed it to:
textBoxNano.Text = stats.Nano.ToString("F10");
but now I have another problem. It displays 1 like this 1.0000000000
How to hide the zeros remaining?
I solved my problem with Custom Numeric Format Strings
I used
.ToString("#,0.####################");which outputs0.01and not0.01000000000000000