title: R: Why this doesn't work?, matrix, rounding error?
body: <p>Why this works:</p>
  
  <pre><code>ncota &lt;- 1
  nslope &lt;- 29
  resul &lt;- matrix(rep(0,ncota*nslope*4),ncota*nslope,4)
  </code></pre>
  
  <p>But this doesn't?</p>
  
  <pre><code>ncota &lt;- 1
  sini &lt;- 0.1; sfin &lt;- 1.5; spaso &lt;- 0.05; nslope &lt;- 1+((sfin-sini)/spaso)
  resul &lt;- matrix(rep(0,ncota*nslope*4),ncota*nslope,4)
  </code></pre>
  
  <p>I guess the problem is that the division gives a noninteger number.
  How can I get the second one work?
  I need to create a zero matrix with its size calculated from a equation calculation.</p>
  
  <p>cheers</p>