title: How do I convert an float to an integer in Elixir
body: <p>Given a float, say (2.0), I want to convert it to an Integer type. It looks like Integer.parse only works for strings as far as I can tell.</p>
  
  <pre><code>Integer.parse(2.0)
  (FunctionClauseError) no function clause matching in Integer.count_digits/2
  </code></pre>