title: Java divison with two integer operands not working?
body: <p>For some reason my math just returns 0. The value are set, I have checked. </p>
  
  <pre><code>int currentSize = 4079;
  int totalSize = 500802;
  
  int percentage = ((currentSize/totalSize) * 100);
  progdialog.setProgress(percentage);
  </code></pre>
  
  <p>Percentage always equals percentage.
  Why?</p>