title: convert float to integer in prolog
body: <p>How to convert float to integer in prolog?</p>
  
  <p>I tried:</p>
  
  <pre><code>?- integer(truncate(sqrt(9))).
  false.
  
  ?- integer(round(sqrt(9))).
  false.
  </code></pre>