title: Integer rounding in C++
body: <p>I was trying to use the formula below in c++.  I have both variables declared as integers and I'm expecting them to round up but they seem to be rounding down.  I have looked over this but cannot seem to find what is wrong. Any help would be greatly appreciated.</p>
  
  <pre><code>int user_degrees_latitude, user_degrees_longitude;
  const int lat_const=(-90)
  const int long_const=(-180)
  
  sector_latitude = (user_degrees_latitude - lat_const) / (10);
  sector_longitude = (user_degrees_longitude - long_const) / (10);
  </code></pre>
  
  <p>The answer should be 13 for sector_latitude and 11 for sector_longitude but the computer rounds each down to 12 and 10 respectively.</p>