Possibly parseFloat() - check the Javascript documentation for the Math and Number classes.