parseInt("33.00") : parse « Data Type « JavaScript DHTML






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> 

   
    
  








Related examples in the same category

1.parseFloat("1.23e-2")
2.parseFloat("1.45inch")