VBScript AtnFunction
Complete VBScript Reference Manual
The Atn function returns the arctangent of a specified number.
Syntax
Atn(number)
| Parameter | Description |
|---|---|
| number | Required. A numeric expression. |
Example
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>
Output of the above example:
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>
Output of the above example:
3.14159265358979
Try it »
Complete VBScript Reference Manual Other Extensions