Adding Decimals

can some one help me with this??

I’m creating a “simple” math task for some kids where they add decimals together.

I’ve created script that randomly picks two decimal numbers and then there is a text box for them to enter their answer.

The problem that I am having is that because I needed to show the .0 on some of the numbers (and flash doesnt do that - it would show 6 rather than 6.0) I’ve used script to add the .0 onto the end of the numbers that need it

The problem that I am having now is that the numbers dont add together properly (at all)

e.g.

should be … 89.9 + 5.8 = 95.7
but when trace the answer is … 89.95.8

I’ve included a fla if someone could have a look and try and help me out??
even if someone could come up with another way of creating the decimals so that there is never any .0 numbers

cheers