How can I prevent decimals being rounded when using DecimalFormat?
<p>Can anyone help how can i prevent rounding decimal value.</p>

<pre><code>DecimalFormat df = new DecimalFormat();

Object[] arrayRowResult = (Object[]) rowResult;
String a=df.format(arrayRowResult[0]) // [0] contain decimal(2,10) but format results rounded value
String b=df.format(arrayRowResult[1]) // [1] contain decimal(2,14) but format results rounded value
</code></pre>

<p>How can i prevent round off.</p>
