How To Solve Mathematical Expression In Java?
<p>I am trying to get percentage but the result is error, i have expression as:</p>

<pre><code>Uper=(Upcount/total)*100;
</code></pre>

<p>where <code>Uper</code> is float while <code>Upcount</code> and <code>total</code> is integer i am getting the result <code>Uper=0</code>.</p>
