<html> | |
<body> | |
<script language="JavaScript" type="text/javascript"> | |
var myString = "56.02 degrees centigrade"; | |
var myInt; | |
var myFloat; | |
document.write("\"" + myString + "\" is " + parseInt(myString) + | |
" as an integer" + "<br>"); | |
myInt = parseInt(myString); | |
document.write("\"" + myString + "\" when converted to an integer equals " + | |
myInt + "<br>"); | |
myFloat = parseFloat(myString); | |
document.write("\"" + myString + | |
"\" when converted to a floating point number equals " + myFloat); | |
</script> | |
</body> | |
</html> | |
Welcome to you HRWebGuru. In this portal, you will be able to find information about the Web Design, mainly focused on the Professional Design of the Web Marketing Company. There are advanced information of Web Technology. It will help you. So keep Open and do best in Web Fields.
Sunday, 10 November 2013
Convert String To Number
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment