JavaScript Reference/Javascript Properties/PI

Материал из Web эксперт
Перейти к: навигация, поиск

"PI" Example

    
<html>
<body>
    <button onclick="alert(Math.PI);">Math.PI</button>
</body>
</html>



"PI" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |Math                                                          |
+----------------+--------------------------------------------------------------+



"PI" Syntax and Note

Note:
Read-only property. 
The value of pi.
    
Syntax:
    
Math.PI