parse float variable

how do you parse float varibles? this is what i have

var Interest

var Interest_earned

Int = prompt("Enter your Interest")

Bal= prompt("Enter your Balance")

year = 0
Balance = Bal
while(year <= 9)

{ Interest = Int year = year + 1 Real_int = Interest / 100 Interest_earned = Real_int * Balance Balance = (Interest_earned + Balance)

    document.write("<tr>")
    document.write("<td align = 'center'>" + year + "</td>") 

    document.write("<td align = 'center'>" + Interest_earned + "</td>")

        document.write( "<td align='right'>" + Balance + "</td>")
        document.write("</tr>")
        }

Wrong Javascript type, but the way you do this in unity is

`var interest : String = "75" function Update(){ var intrestFloat = parseFloat(interest); print(interestFloat); }`

(Sorry its not in code format, I hit the code button, but its not working)