VBScript Atn Function
Atn function returns the arc tangent of the specified number.
grammar
Atn(number)
参数 | 描述 |
---|---|
number | 必需。一个数值表达式。 |
Examples
Example 1
<script type="text/vbscript">
document.write(Atn(89) & "<br />")
document.write(Atn(8.9))
</script>
document.write(Atn(89) & "<br />")
document.write(Atn(8.9))
</script>
Examples of the above output:
1.55956084453693
1.45890606062322
1.45890606062322
try it"
Example 2
Calculate the value of pi:
<script type="text/vbscript">
Dim pi
pi=4*Atn(1)
document.write(pi)
</script>
Dim pi
pi=4*Atn(1)
document.write(pi)
</script>
Examples of the above output:
3.14159265358979
try it"
Complete VBScript Reference