Java double and bigdecimal same weird value
<p>I'm making a calculation module about that accepts <code>double</code> or <code>BigDecimal</code> like this but I have this problem.</p>

<pre><code>double x = 2.3333333333312398;
BigDecimal big = BigDecimal.valueOf(2.3333333333312398);
</code></pre>

<p>I print their values</p>

<pre><code>System.out.println(x);
System.out.println(big);
</code></pre>

<p>and the output</p>

<pre><code>2.3333333333312396
2.3333333333312396
</code></pre>

<p>I tried to changed the value of <code>x</code> and <code>big</code> variable to <code>2.3333333333312395</code>
but the output still the same. I changed it again to <code>2.3333333333312396</code> and prints the same value.</p>

<p>If I changed again to <code>2.3333333333312394</code> the displayed again the weird value</p>

<p><code>2.3333333333312396</code></p>

<p>What's the cause of this problem? Thanks!</p>
