# I set a=b but a!=b why?

**URL:** <https://forum.kirupa.com/t/i-set-a-b-but-a-b-why/311760>\
**Category:** Uncategorized\
**Created:** [July 15, 2010, 4:51pm UTC](https://forum.kirupa.com/t/i-set-a-b-but-a-b-why/311760 "2010-07-15T16:51:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![speghettiCode](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@speghettiCode](https://forum.kirupa.com/u/speghettiCode)\
**Post date:** [July 15, 2010, 4:51pm UTC](https://forum.kirupa.com/t/i-set-a-b-but-a-b-why/311760/1 "2010-07-15T16:51:44Z")

</div>

Hello,

Why does the following yield “30=240.25” instead of “30=30”? I’d like it to say “30=30”.

```auto

//obj defined above as new object and given graphic properties
var w:int = 30;
obj.width=w;
trace(w+'='+obj.width);

```

Thanks for your help!
