title: While loop never breached during execution in Matlab
body: <p>Even if the conditional statement of the while loop is true, the loop keeps looping!</p>
  
  <p>this is the code (not the one I'm working on but it represents the same pbl):</p>
  
  <pre><code>counter = 0
  
  while true
      counter = counter + .1
      if counter == 10
          break;
      end
  end
  </code></pre>
  
  <p>Obviously the loop should stop when <strong>counter</strong> reaches 10, but that condition is never met</p>
  
  <p>When using integers as increment it works as predicted.</p>