title: Converting Integer to Double in Haskell
body: <p>I want to compound growth over a year but I don't care about decimal points, so I tried</p>
  
  <pre><code>take 52 $ iterate (floor . (*1.1)) 100
  </code></pre>
  
  <p>The problem is that the type of <code>(floor . (*1.1))</code> is <code>Double -&gt; Integer</code>, whereas the type expected by the first arg of iterate is <code>a -&gt; a</code>.</p>
  
  <p>I tried a couple of approaches, but ended up tying myself in knots. </p>
  
  <p>What is the preferred solution to keeping numeric types consistent across function application?</p>