Page 1 of 1

How to express angles

PostPosted: Sat Oct 23, 2010 8:55 am
by ORWoody
I'd like to express an angle in DCAL, but am not sure how to do it.
What I am wanting to do is get something to use for sin (angle).
Thanks much,

PostPosted: Sun Oct 24, 2010 6:01 pm
by rod_walker
All of dcal trig routines use radians.
If you have used the procedure 'getang' to obtain the angle from the user via the standard dataCAD menu then the angle obtained will be in radians. If you are inputting them via program in degrees you will need to convert the angle to radians.

adeg: real
Arad: real

Arad:=radians(adeg);