title: C++ int float casting
body: <p>Why is m always = 0? The x and y members of someClass are integers. </p>
  
  <pre><code>float getSlope(someClass a, someClass b)
  {           
      float m = (a.y - b.y) / (a.x - b.x);
      cout &lt;&lt; " m = " &lt;&lt; m &lt;&lt; "\n";
      return m;
  }
  </code></pre>