title: How to round down Values in Spark sql
body: <p>I am querying a postgres sql using the following query. I need to <strong><em>round down</em></strong> the value of  <code>min(months_between(current_date,somedate))</code></p>
  
  <p>for ex: <code>13.83</code> should be<code>13</code> and not <code>14</code>, even <code>13.9</code> should be <code>13</code> as well. Is there any function that can round down this value in<code>sparksql</code>? Any help will be highly appreciated.</p>