jQuery (1.7.2 - latest) - weird behaviour when setting CSS values (decimals/float errors)
===

I've been testing a simple loop which moves something across the screen - but I'm seeing odd behaviour (almost certainly related to float errors) when setting CSS Properties through jQuery.

Basically I do something like this repeatedly

    var val = parseInt($(myobject).css("left));
    val -= 7;
    $(myobject).css("left",val+"px");

If I test the value of the "left" property after that, I'll see results such as

    1042
    1035
    1028
    1020 <<<< !!!!
    1013
    1006
    ...

Digging further, what seems to be happening is that I do this

    $(myobject).css("left","1021px")
    alert($(myobject).css("left"))

and what the alert shows is "1020.99876152371253716253px"

All I can think is that jQuery is internally stripping the "1021px" and assigning a non-rounded/fixed/ceiled/floored version of the number!?

Not sure where to raise this as a problem or if I'm missing something!?!?