by **samps** on Sat Oct 12, 2002 9:01 pm

You're getting the wrong values (actually you're getting the RIGHT answers to the wrong questions) because PocketC is using RADIANS, not DEGREES

To get the expected TAN value you'll have to convert from degrees to radians before calling tan()...

Your angle, 30 degrees, is 30/360th of a circle, and a circle is 2*pi radians

//tans

float angle;

main()

{

angle=30.0/360*6.28;

alert(tan(angle));

}

you'll get used to it

Samps

Ubuntu user #82