Convert "1234asdf" to float with parseFloat() in JavaScript
Description
The following code shows how to convert "1234asdf" to float with parseFloat().
Example
<!--from w ww . j a v a 2 s . com-->
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
document.writeln(parseFloat("1234asdf"));
</script>
</head>
<body>
</body>
</html>
The code above generates the following result.