'parseFloat()' Example : parseFloat « Javascript Methods « JavaScript Reference

'parseFloat()' Example

    
<html>
<body>
<button onclick="alert(parseFloat('12.34'));">Number</button>
<button onclick="alert(parseFloat('Hello'));">NaN</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'parseFloat()' Syntax, Parameters and Note