VBScript » Functions » Cos

Version: 1.0

Syntax:
Cos(Number)

The Cos function returns the cosine for a number (angle).

Examples

Code:
<% =Cos(45.0) %>
Output:
0.52532198881773
Language(s): VBScript
Code:
<% =Cos(-45.0) %>
Output:
0.52532198881773
Explanation:

You can also use a negative number (angle).

Language(s): VBScript

See Also: