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

Hello,

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


//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!