VBScript Atn Function
Complete VBScript Reference
The Atn function returns the arctangent of a specified number.
Syntax
| Parameter |
Description |
| number |
Required. A numeric expression |
Examples
Example 1
<script type="text/vbscript">
document.write(Atn(89) & "<br />")
document.write(Atn(8.9))
</script>
The output of the code above will be:
1.55956084453693
1.45890606062322
Try it yourself »
Example 2
Calculate the value of pi:
<script type="text/vbscript">
Dim pi
pi=4*Atn(1)
document.write(pi)
</script>
The output of the code above will be:
3.14159265358979
Try it yourself »
Complete VBScript Reference
Thank You For Helping Us!
Your message has been sent to W3Schools.
Close [X]