VBA Atn Function: The Atn function in VBA returns the arctangent between quadrant -π/2 and +π/2 for the specified number, in radians.

Syntax

Parameter

Number (required) – This parameter represents the number that the user wants to calculate the arctangent of.

Return

This function returns the arctangent between quadrant -π/2 and +π/2 for the specified number, in radians.

Example 1

Output

-1.107148718
0
Excel VBA Atn Function

Example 2

Output

0.773953656919952

Excel VBA Atn Function

Example 3

Output

30

Excel VBA Atn Function

Example 4

Output

Excel VBA Atn Function

Pin It on Pinterest

Share This