I guess this is an internals convertion problem, but how can I get rid of it?
var a:Number = 0.0003;
trace("a=" + a);
trace("a*10000=" + a*10000);
Looks to me like the result should be 3, and I am not really calculating PI with 100 digits after the comma?
No, it is not a bug. It's due to the fact that floating-point numbers store a finite number of binary digits and therefore can't represent many decimal fractions exactly.
One workaround is to the Number method toFixed().
Adobe Flex SDK Team