Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

sql
atan
communitycreator

What is ATAN() in SQL?

harris910

This function returns the inverse tangent of a number. To be more specific, it returns the inverse tangent of a number in the radian float value. It is also called the arc tangent function.

Figure 1 shows the mathematical representation of the ATAN() function and Figure 2 shows the visual representation of the ATAN() function.

Figure 1: Mathematical representation of inverse tangent function
Figure 2: Visual representation of inverse tangent function

Syntax

ATAN(number)

Parameter

This function requires a number as a parameter.

Return Value

ATAN() returns the inverse tangent of a number (radian float value) that is sent as a parameter.

Example

/*example showing how to use ATAN(X)*/

-- positive number
select ATAN(3);

-- negative number
select ATAN(-1);

-- fractional number
select ATAN(0.6);

RELATED TAGS

sql
atan
communitycreator
RELATED COURSES

View all Courses

Keep Exploring