The value of the constant PI: Math.PI : PI « Math « JavaScript Tutorial






<html>
<head>
<title>The Properties of the Math object</title>
<script type="text/javascript" language="javascript">
<!-- //
function DisplayMath(){
    document.write("<br/><P>The value of the constant PI is: " + Math.PI + "</p>");
}
// -->
</script>
</head>
<body onload="DisplayMath()">

</body>
</html>








9.19.PI
9.19.1.Math.PI
9.19.2.The value of the constant PI: Math.PI
9.19.3.Use Math.PI to do calculation