title: How to round down to nearest integer in MySQL?
body: <p>How would I round down to the nearest integer in MySQL?</p>
  
  <p>Example: <code>12345.7344 rounds to  12345</code></p>
  
  <p>mysql's <code>round()</code> function rounds up.</p>
  
  <p>I don't know how long the values nor the decimal places will be, could be 10 digits with 4 decimal places, could be 2 digits with 7 decimal places. </p>