[ACCEPTED]-How to convert double to string without the power to 10 representation (E-05)-tostring

Accepted answer
Score: 14

Use String.Format() with the format specifier. I think you want {0:F20} or 1 so.

string formatted = String.Format("{0:F20}", value);
Score: 6

How about

Convert.ToDecimal(doubleValue).ToString()

0

Score: 4

You don't need string.Format(). Just put the right format string in 2 the existing .ToString() method. Something like "N" should 1 do.

Score: 2

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

More Related questions