How to convert double to string without the power to 10 representation (E-05)
double value = 0.000099999999833333343;
string text = value.ToString();
Consol
Use String.Format() with the format specifier. I think you want {0:F20} or so.
string formatted = String.Format("{0:F20}", value);
You don't need string.Format()
. Just put the right format string in the existing .ToString()
method. Something like "N" should do.
Use string.Format
with an appropriate format specifier.
This blog post has a lot of examples: http://blogs.msdn.com/kathykam/archive/2006/03/29/564426.aspx
How about
Convert.ToDecimal(doubleValue).ToString()