title: Octave mod function and integer
body: <p>I have a problem when I call the <code>mod</code> function. I have a variable M which is a two dimensional vector. When I print <code>M</code>, I see <code>M = [350,240.00]</code>.</p>
  
  <p>Here is the problem : when I type <code>mod(M(1),10)</code>, I obtain <code>0</code> which is fine but I get <code>10</code> when I type <code>mod(M(2),10)</code>.</p>
  
  <p>I don't know if anyone has ever encounter this kind of problem or has an idea.</p>