Java: Issue in converting result of exponential values to int
<p>Suppose I have a range from <strong>0-100</strong> &amp; I choose a random number X say 29.</p>

<p>Now I increase the range to a big number say a 10-digit 1023654740.</p>

<p>Now I want to find the place of that X in 0-1023654740. (<em>so that is I belive is 29% of 1023654740</em>)</p>

<p>If I perform the calculation using <code>Double</code>, I'm getting an exponent value.</p>

<pre><code>double range = 1023654740;
double position = 29;   // Can be any number from 0 - range
Double val = (((double) position / range) * 100);

Result: 2.8329864422842414E-6
</code></pre>

<p>But I want final result in <code>int</code>.<em>(dont care if the final value is rounded off or truncated)</em></p>

<p>Any suggestions</p>
