How do you trim the BigDecimal division results
<pre><code>BigDecimal numerator = new BigDecimal(numerator);
BigDecimal denominator = new BigDecimal(denominator);
double result = numerator.divide(denominator).doubleValue();
</code></pre>

<p>Division on certain conditions results in a zero at the end <code>(e.g. 0.0060)</code>. 
Dividing equal numbers results in a zero at the end <code>(e.g 1.0)</code>.</p>

<p>I would prefer to trim the trailing zero in both cases. How should I do this?</p>
