title: Retain decimal places in toString
body: <p>Is there a way to make the resulting string from a 'double.toString()' contain the exact value of the double?</p>
  
  <p>for example</p>
  
  <pre><code>double d = 123.0   -&gt;   toString() will be "123"
  </code></pre>
  
  <p>I've found a little bit of a solution in using the custom format <code>.toString("#.0")</code> but if I want to add any more decimal places I'm back to where I started</p>
  
  <pre><code>double d = 123.00   -&gt;  toString("#.0") will be 123.0
  double d = 123.0    -&gt; toString("#.00") will be 123.00
  </code></pre>
  
  <p>The reason I'm trying to do this is because I've got custom text boxes that must use a different value to the one thats actually displayed and when trying to enter your own value into this text box the textbox is ignoring your text when you try to enter zero in decimal places. Therefore I need the <code>toString</code> value to equal the exact value of the <code>double</code> so this number can be entered properly.</p>
  
  <p>Thank you</p>