Search w3schools.com:

SHARE THIS PAGE

VBScript Atn Function


VBScript Reference Complete VBScript Reference

The Atn function returns the arctangent of a specified number.

Syntax

Atn(number)

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 »

VBScript Reference Complete VBScript Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]