ATAN_2

Syntax:

ATAN_2(x:number, y:number)

Returns the arc tangent of x and y as an angle in radians in the correct quadrant of the range (-π,π].

Example:

DEG(ATAN_2(-0.866, -0.5))

returns the number -150 (degrees).