[ACCEPTED]-How to convert double to string without the power to 10 representation (E-05)-tostring
Accepted answer
Use String.Format() with the format specifier. I think you want {0:F20} or 1 so.
string formatted = String.Format("{0:F20}", value);
How about
Convert.ToDecimal(doubleValue).ToString()
0
You don't need string.Format()
. Just put the right format string in 2 the existing .ToString()
method. Something like "N" should 1 do.
Use string.Format
with an appropriate format specifier.
This 1 blog post has a lot of examples: http://blogs.msdn.com/kathykam/archive/2006/03/29/564426.aspx
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.