title: Calculation is not working in C#
body: <p>I am trying to calculate a percentage for first pass yield but divide is not working and is returning a zero</p>
  
  <pre><code>double FirstPassYield = ((RowTotal - DefectCount) / RowTotal) * 100;
  </code></pre>
  
  <p>I tried individual calculations and they work except when I use divide. I even took to random numbers and divided them and still get a 0. I an not sure way divide keeps returning a 0 </p>