JavaScript DHTML/Data Type/parse
parseFloat("1.23e-2")
<html>
<head>
<title>Convert String to Number</title>
</head>
<body>
<p>
<script type="text/javascript">
var sNum = "1.23e-2";
document.writeln(parseFloat(sNum));
</script>
</p>
</body>
</html>
parseFloat("1.45inch")
<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>
parseInt("33.00")
<html>
<head>
<title>Convert String to Number</title>
</head>
<body>
<p>
<script type="text/javascript">
var iValue = parseInt("33.00");
document.writeln("<p>" + iValue + "</p>");
</script>
</p>
</body>
</html>