<html> <head> <title>Convert String to Number</title> </head> <body> <p> <script type="text/javascript"> var fValue = parseFloat("1.45inch"); document.writeln("<p>" + fValue + "</p>"); </script> </p> </body> </html>