Tutorials References Menu

VBScript Atn Function

❮ 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

<%

response.write(Atn(89) & "<br />")
response.write(Atn(8.9))

%>

The output of the code above will be:

1.55956084453693
1.45890606062322
Show Example »

Example 2

Calculate the value of pi:

<%

Dim pi
pi=4*Atn(1)
response.write(pi)

%>

The output of the code above will be:

3.14159265358979
Show Example »

❮ Complete VBScript Reference