Trig functions returning bogus results

I am having trouble with trig function.

my code:

result = atan(1)
msgbox(result)

the msgbox returns a result value of 0.785.....

result should = 45.
I have tested other trig functions, and all result seem off.

what i am doing wrong?
 
Top