title: Convert milliseconds to seconds in C
body: <p>Simple C question, how can I correctly and succintly convert milliseconds to seconds.
  There are two constraints:</p>
  
  <ul>
  <li>I've no floating point support in this tiny subset-of-C compiler</li>
  <li><p>I need the seconds rounded to the nearest second(1-499ms rounds down,500-999ms rounds up. Don't need to care about negative values)</p>
  
  <pre><code>int mseconds = 1600; // should be converted to 2 seconds
  int msec = 23487;  // should be converted to 23 seconds
  </code></pre></li>
  </ul>