parseFloat problem with decimals

can someone have a look and see if they can help me out with this problem??

I’m creating a math test where the user multiples a decimal with a whole number, the numbers are being created at random.

the problem I am having is that I’m using a function so that if the decimal is a whole number itself flash adds a .0 on the end, this all works fine… but sometimes when you click the check answer button, and answer is correct, it shows as being incorrect.

I’ve attach a file so you can see what I mean (the error doesnt always show straight away)… I’ve tried so many different ways but cant get this thing to work.

if someone can help my out they would be a life saver :ne: