title: How to divide 1 by 25(1/25) and get result .04 in java
body: <p>It returns <code>0</code> if performed with plain BODMAS operation.</p>
  
  <p>I have something like this:</p>
  
  <pre><code>int mbUsed=1;
  
  int mbTotal=25;
  
  int percent=(mbUsed/mbTotal)*100;
  </code></pre>