VBScript CosFunction
Complete VBScript Reference Manual
The Cos function returns the cosine of the specified number (angle).
Syntax
Cos(number)
| Parameters | Description |
|---|---|
| number | Required. A numeric expression that represents an angle in radians. |
Example
Example
<script type="text/vbscript">
document.write(Cos(50.0) & "<br />")
document.write(Cos(-50.0))
</script>
document.write(Cos(50.0) & "<br />")
document.write(Cos(-50.0))
</script>
The output result of the above example is:
0.964966028492113
0.964966028492113
0.964966028492113
Try it yourself »
Complete VBScript Reference Manual Other Extensions