VBScript Atn Function

The Atn function returns the arctangent of a specified number."

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

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

❮ Complete VBScript Reference