title: Beginners Java Question (int, float)
body: <pre><code>int cinema,dvd,pc,total;
  double fractionCinema, fractionOther;
  fractionCinema=(cinema/total)*100; //percent cinema
  </code></pre>
  
  <p>So when I run code to display fractionCinema, it just gives me zeros. If I change all the ints to doubles, then it gives me what Im looking for. However, I use cinema, pc, and total elsewhere and they have to be displayed as ints, not decimals. What do I do?</p>