jquery num++ not working for me
<p>i am trying to intergrate the jquery progress bar but i am getting issues.</p>

<p>take the follwoing code..</p>

<pre><code>$(document).ready(function(){

  $( "#progressbar" ).progressbar({value: 0});

  var size = $(".item img.main").size();

  var overall = 100 / size;

   var sum = overall;
   $(".item img.main").each(function (index) {
    var $this = $(this);

    console.log(sum++);
        $( "#progressbar" ).progressbar({value: sum++});

  });
</code></pre>

<p>to view a better example i have put one into js bin here.</p>

<p><a href="http://jsbin.com/ogatij/2/edit#source" rel="nofollow">http://jsbin.com/ogatij/2/edit#source</a></p>

<p>render code and you will see what i mean the num++ is not working for me say with the 3 images.</p>

<p>the overall value is 33.333333333333336</p>

<p>ok so this should loop three time to the each loop using ++</p>

<pre><code>33.333333333333336
66.333333333333336
100
</code></pre>

<p>but this doesnt work i get the following.</p>

<pre><code>33.333333333333336
34.333333333333336
35.333333333333336
</code></pre>

<p>can anyone explain why this is happening???</p>

<p>Thanks</p>
