hexagon logo

Using ATAN to get a result between 0 and 360

Using ASSIGN/V1=RAD2DEG(ATAN(Y value/X value)) gives a result between -90 and + 90.
If the expected result is 130, it gives -50, if it's 240, it gives 60, if it's 350, it gives -10.

So you can use this way (calculating angles of hits of a scan) :