Nice, usefull snippet! I know this was probably only to show how it works, but if with the way you have it written, if x# does equal zero, your going to get a divide by zero error. I'd re-write it like this:
+ Code Snippetfunction atanful(x#, y#)
If x <> 0
angle# = 90 - atan(y#/x#)
Else
if y# < 0 then angle# = 180
if y# > 0 then angle# = 0
endif
if x# < 0 then angle# = 180 + angle#
endfunction angle#