title: How to round down a double to the nearest smaller int in C?
body: <p>I've got a double:</p>
  
  <pre><code>double d = 25.342;
  </code></pre>
  
  <p>How can I convert it to <code>25</code> value?</p>
  
  <p>If it were <code>-12.46</code> I'd like to get <code>-13</code>.</p>