title: Find the percentage that is one integer to another
body: <p>I have two integers (amount of bytes of two files). One is always smaller if not the same than the other. I want to calculate the percentage that the smaller is of the bigger.</p>
  
  <p>I'm using plain C. I've applied the math formula, but am getting always 0:</p>
  
  <pre><code>printf("%d\r", (current/total)*100);
  </code></pre>
  
  <p>Any ideas?</p>