Either showing maximum number of decimal places, or don't show at all
<p>Currently, using <code>DecimalFormat</code> I would like to show maximum number of decimal places, or don't show at all. For instance,</p>

<ol>
<li>100.0 shown as <strong>"100"</strong></li>
<li>100.123 shown as <strong>"100.123"</strong></li>
<li>100.123456789012345 shown as <strong>"100.123456789012345"</strong>
Using format as</li>
</ol>

<p><code>new DecimalFormat("0.###");</code> is partially correct. It works for 1st case, 2nd case but not 3rd case. As, I have no idea how much <code>#</code> should I have?</p>

<p>So, may I know what is the correct <code>DecimalFormat</code> I should use?</p>
