VBScript Atn Function

Definition and Usage

The Atn function can return the tangent of a specified number.

Syntax

Atn(number)
Parameter Description
number Required. A numeric expression.

Instance

Example 1

document.write(Atn(89))

Output:

1.55956084453693

Example 2

document.write(Atn(8.9))

Output:

1.45890606062322

Example 3

Calculate the value of pi:
dim pi
pi=4*Atn(1)
document.write(pi)

Output:

3.14159265358979