# Odd trace on object stage position

**URL:** <https://forum.kirupa.com/t/odd-trace-on-object-stage-position/279307>\
**Category:** flash\
**Created:** [January 13, 2009, 8:07am UTC](https://forum.kirupa.com/t/odd-trace-on-object-stage-position/279307 "2009-01-13T08:07:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandylion13](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Post date:** [January 13, 2009, 8:07am UTC](https://forum.kirupa.com/t/odd-trace-on-object-stage-position/279307/1 "2009-01-13T08:07:18Z")

</div>

Hi,

I noticed odd trace that wonder whether someone can explain.

I’ve got the following code in an ENTER\_FRAME event. It’s used to move an object.

```auto
_vx +=0.2;
_vy +=0.2;

x+=_vx;
y+=_vy;

trace("_vx: " + _vx);
trace("x: " + x);
trace("----------");

```

The trace for the first 5 frames looks like this:

```auto
_vx: 0
x: 275
----------
_vx: 0.2
x: 275.2
----------
_vx: 0.4
x: 275.55
----------
_vx: 0.6000000000000001
x: 276.15
----------
_vx: 0.8
x: 276.95

```

Obviously, 275.2 + 0.4 doesn’t equal 275.55.

Does anyone know the reason for this?

Thanks!  
Dandylion13
