You haven't really explained what the problem is. My guess is
that you are running into one well known problem of all computers
and the other is a limit of Flash.
Sometimes and for certain values, the binary conversion from
a decimal (in base 10) number with decimals (fractional numbers) to
a binary (what the computer uses internally) and then back again
will produce strange artifacts where a number will come out with a
lot of zeros after the decimal and a 1. Or sometimes with a lot of
nines. It is just the nature of trying to represent numbers in
computer. All systems suffer from it, some use special techniques
to overcome it - and some don't.
The other issue I think you are having is that Flash has 15
significant digits (I think that is it. So by having more than 15
places to the right all of those numbers are equal because flash
isn't seeing that digit all the way out to the right.
If that isn't what your problem is, please let us know.
Finally, you aren't converting to a Number you are casting as
a number. If you want to convert a string to a number use parseInt
or parseFloat.