|
|
VBScript Cos Function
Complete VBScript Reference
The Cos function returns the cosine of a specified number (angle).
Syntax
| Parameter |
Description |
| number |
Required. A numeric expression that expresses an angle
in radians |
Example
Example
<script type="text/vbscript">
document.write(Cos(50.0) & "<br />")
document.write(Cos(-50.0))
</script>
|
The output of the code above will be:
0.964966028492113
0.964966028492113
|
Try it yourself »
|
Complete VBScript Reference
|
|
|