ATAN2 function in Oracle

ATAN2 is one of the vital Numeric/Math functions of Oracle. It is used to get the arc TANGENT of two numbers. The ATAN2 function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i and Oracle 8i.

Syntax:

ATAN2 ( x, y )

Parameters:
x, y: It is used to specify the numbers to get the arc tangent value of.

Example 1:

ATAN2 (0, 1)

Output:

0

Explanation:
The Arc tangent means the inverse of the tangent. The arc tangent2 value of 0 and 1 is 0 degrees i.e, 0 radians, and so is the result.

Example 2:

ATAN2 (1, 0)

Output:

1.57079632

Explanation:
The Arc tangent means the inverse of the tangent. The arc tangent2 value of 1 and 0 is 1.57079632 radians, and so is the result.