title: Java - Dividing two integers gives 0?
body: <p>I might be missing something simple here, but when I divide two numbers that definately should not equal 0, I'm getting 0.</p>
  
  <p>I've tried forcefully casting the values. SongDuration, originalSongDuration are integers. I need the percentage to be a float.</p>
  
  <pre><code>System.out.print("SongDuration: " + songDuration + " :: originalSongDuration: " + originalSongDuration + " :: percentage: " + (float) ((int)songDuration / (int)originalSongDuration));
  
  [17:43:03 INFO]: SongDuration: 64746 :: originalSongDuration: 140746 :: percentage: 0.0
  </code></pre>
  
  <p>Thanks.</p>