Demonstrating the toExponential() method : toExponential : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » toExponential »

 

Demonstrating the toExponential() method

















<html>
<head>
<title>Demonstrating the toExponential() method</title>
<script type="text/javascript" language="javascript">
<!-- //
function CreateExponentials(){
    number = new Number(123456789);
    for (var i=0; i<5; i++){
        document.write(number.toExponential(i"<br/>");
    }
}
// -->
</script>
</head>
<body onload="CreateExponentials()">
<P>This listing demonstrates the use of the toExponential() method.</p><br />
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» toExponential