How to extract fractional digits of double/BigDecimal
<p>Say we have a double value of <code>12345.6789</code> (should be dynamic)</p>

<p>Now the requirement is split the number and get the decimal digits and fractional digits, which would be:</p>

<pre><code>double number = 12345.6789;
int decimal = 12345;
int fractional = 6789;
</code></pre>

<p>I get the decimal part work out but could you please give a hint on the fractional part? Thanks a lot.</p>
