ATAN

The ATAN function returns the arctan of the input argument; that is, the angle (in radians) whose tangent is x.

Syntax

ATAN (x)

Remarks

The table lists the valid input argument data types and the resulting output data types.

Data Type of Argument

Output Type

Notes

BIGINT, DECIMAL, FLOAT, INTEGER, NUMERIC, REAL, SMALLINT, TINYINT

FLOAT

The input value can range from -pi/2 to pi/2, inclusive.
Output value is in radians.

NULL

NULL

 

Example

SELECT ATAN(0.57735026919);

The result is 0.5235987755982989 radians, which is 30 degrees.