How can I format a decimal?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/697977/how-to-format-a-decimal">How to format a decimal</a>  </p>
</blockquote>



<p>I need to format a decimal like the following:</p>

<pre><code>63.000 -&gt; 63
63.045 -&gt; 63.045
63.020 -&gt; 63.02
</code></pre>

<p>But look at above, check the first one, if in decimal part there are only zeros, I need to remove those zeros for just 63.</p>
