VBScript Cos Function
Cos function returns the specified number (angle) of the cosine.
grammar
Cos(number)
参数 | 描述 |
---|---|
number | 必需。将某个角表示为弧度的数值表达式。 |
Examples
Examples
<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>
Examples of the above output:
0.964966028492113
0.964966028492113
0.964966028492113
try it"
Complete VBScript Reference