title: javascript for loop with decimals
body: <p>I'm trying to use this <code>for</code> loop in order to show divs. But I get a strange error from the jQuery lib.</p>
  
  <p>Error: Syntax error, unrecognized expression: =10]</p>
  
  <p>I have read about the problems with javascript decimals, but I still can't understand why this won't work:</p>
  
  <pre><code>for (var i = 10.00; i &gt;= ui.value; i -= 0.25) {
      $("data_id=" + Math.floor(i) + "]").show();
  }
  </code></pre>
  
  <p>When hiding the divs, I use this and it works fine:</p>
  
  <pre><code>for (var i = 0.00; i &lt; ui.value; i += 0.25) {
      $("[data_id=" + Math.floor(i) + "]").hide();
  }
  </code></pre>