jquery count to number
<p>I have a piece of code that counts from 0 to a specified number with a specified delay.</p>

<p>The problem is that it adds by 1 and I want it to add by 0.01</p>

<p>How to do it? the code is as follows:</p>

<pre><code>    &lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;body{font:11px verdana;color:#555;}&lt;/style&gt;
&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
var max = 20;// set with php
$(incCounter);
function incCounter() {
    var currCount = parseInt($('.counter').html());
    $('.counter').text(currCount+1);
    if (currCount+1 != max) {
        setTimeout(incCounter,50);
    }
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class="counter"&gt;0&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
