Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
The global JavaScript function parseFloat() converts strings to numbers: