Hello,

i am working on a very serious project and i chose to use PicBasic Pro.
but i just encountered a serious problem:

in a certain part of my program i got a certain value "alpha". I needed to get cosine alpha.
but the problem is that:

"COS returns the 8-bit cosine of a value. The result is in two’s complement
form (i.e. -127 to 127). It uses a quarter-wave lookup table to find the
result. Cosine starts with a value in binary radians, 0 to 255, as opposed
to the usual 0 to 359 degrees."

but i need the usual 0 to 359 degrees!! and this is so essential in my program!

Now i am getting: cos 0 = 127 ! i just need to get back the normal values example: cos 0 = 1, cos 90 = 0, cos 70 = 0.342

Please any help??

It's so URGENT... write a code if possible and i'll be more than grateful...