JavaScript Reference/Javascript Methods/cos

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

"cos()" Example

    
<html>
<body>
<button onclick="alert(Math.cos(1));">COS</button>
</body>
</html>



"cos()" is applied to

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



"cos()" Syntax, Parameters and Note

Note:
Cosine
    
Syntax:
    
Math.cos(param1)
Parameters:
    param1   Required; the number to convert.