How to get the double value of a big number using BigDecimal in java?
<p>I have a database column with Decimal(19,5) size, I want a BigDecimal in java to store the value but if I write</p>

<pre><code> BigDecimal(999999999999999.9999);
</code></pre>

<p>the value is rounded to 1+E15 which I don't want it to be,So how can I get the complete precision of the number.</p>

<p>One way I know is using</p>

<pre><code>BigDecimal("999999999999999.9999");
</code></pre>

<p>I thought there should be a better option to specify the precision.</p>

<p>Thanks and Regards.</p>
