# Flash doesn't add numbers right... help!

**URL:** <https://forum.kirupa.com/t/flash-doesnt-add-numbers-right-help/155296>\
**Category:** Uncategorized\
**Created:** [July 16, 2005, 2:34am UTC](https://forum.kirupa.com/t/flash-doesnt-add-numbers-right-help/155296 "2005-07-16T02:34:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ovi\_dio](https://avatars.discourse-cdn.com/v4/letter/o/edb3f5/32.png) [@ovi\_dio](https://forum.kirupa.com/u/ovi_dio)\
**Post date:** [July 16, 2005, 2:34am UTC](https://forum.kirupa.com/t/flash-doesnt-add-numbers-right-help/155296/1 "2005-07-16T02:34:08Z")

</div>

Hi everybody! Thanks in advance for your help!

Here’s my problem:

sometimes when within an onEnterFrame, when I add var1+=var2 flash doesn’t do it’s Math the right way. It sort of says 2.15+2.45=4.55 I’m using trace() to check on the values and that is exactly what it does.

What’s the explanation for this and how can it be fixed?

Thanks!
