DecimalFormat Significant Digit pattern throws an exception
<p>I am trying to use the significant digit identifier @ <a href="http://developer.android.com/reference/java/text/DecimalFormat.html#sigdig" rel="nofollow">Shown Here</a> but it throws an IllegalArgumentException and I'm not sure how to use it.
I'm trying to format a calculation result to discard any digits that follow two or more zeros. 
ex. 1.234002 should be 1.234</p>

<p>fResult is a float from a previous calculation</p>

<p>This code throws an exception:</p>

<pre><code>String aResult = "";
NumberFormat f = NumberFormat.getInstance(Locale.US);
if (f instanceof DecimalFormat) {
    aResult = new DecimalFormat("#.@@@###").format(fResult);
}
return aResult;
</code></pre>

<p>This code does not:</p>

<pre><code>String aResult = "";
NumberFormat f = NumberFormat.getInstance(Locale.US);
if (f instanceof DecimalFormat) {
    aResult = new DecimalFormat("#.######").format(fResult);
}
return aResult;
</code></pre>
