ATAN2 calculates the direction from the origin to the point (x,y) as an angle from the x-axis in radians.
The result will be between −π and +π. The order of the arguments may be unexpected.
This function is Excel compatible.
This function is OpenFormula compatible.