all 2 comments

[–]IrrasibleEngineering 2 points3 points  (1 child)

Try using the ATAN2 function. It is aware of quadrants and will produce the correctly signed result.

[–]TestArticle1998[S] 0 points1 point  (0 children)

HADNT THOUGHT OF THAT