title: MATLAB - floor question
body: <p>I'm a MATLAB beginner. Here's the problem:</p>
  
  <pre><code>&gt;&gt; a = floor(7/2.5)
  
  a =
  
        2.00
  
  &gt;&gt; b = rem(7,2.5)
  
  b =
  
        2.00
  
  &gt;&gt; c = floor(b/2)
  
  c =
  
           0
  </code></pre>
  
  <p>c should be 1, right? Why is it 0???</p>
  
  <p>It is different when b = 2 is entered directly as follows:</p>
  
  <pre><code>&gt;&gt; b = 2
  
  b =
  
        2.00
  
  &gt;&gt; c = floor(b/2)
  
  c =
  
        1.00
  </code></pre>