Using BNF in DecimalFormat
<p>Does anyone have experience using BNF in DecimalFormat?</p>

<p><a href="http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html" rel="nofollow">http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html</a></p>

<p>See under "Number Format Pattern Syntax"</p>

<p>As I wish to convert from double to string as follow :</p>

<pre><code>0.10 -&gt;      "0.1"
0.110 -&gt;     "0.11"
0.11...10 -&gt; "0.11...1"
</code></pre>

<p>Currently, I am using</p>

<pre><code> DecimalFormat decimalFormat = new DecimalFormat("0.#############################");
</code></pre>

<p>I just feel that it is not a very smart way. I wish to specific, "has 1 or more #"</p>
