title: casting integer division into double in C
body: <p>Why does the code </p>
  
  <pre><code>double slope = (double)changeY/changeZ 
  </code></pre>
  
  <p>set slope to 0.0, when in the program I have, changeX = 20 and changeY = 10 (both ints)?</p>