Returns the arc tangent of the quotient of two arguments.

Syntax

ATAN2(numValue1, numValue2)

Arguments

  • numValue1: a DOUBLE value.
  • numValue2: a DOUBLE value.

Returns

A DOUBLE value, which is the arc tangent of numValue1/numValue2. Returns NULL if either numValue1 or numValue2 is NULL.

Examples

SELECT ATAN2(xValue, yValue) FROM MYSQL.inventory.geoTable;

-- VALUES ATAN2(5,2)
-- Returns 0.380506377