ATAN2(float_exp1, float_exp2)

Returns the arctangent of the x and y coordinates, specified by float_exp1 and float_exp2, respectively, as an angle, expressed in radians.

 

In most specifications (like POSIX or IEEE) the y coordinate is specified first, followed by the x coordinate. However, the ATAN2 ODBC specification specifies x, then y.

 

Example:

SELECT ATAN2(.75, .50) returns 0.588002603547568