Uuuhhhh...

Super-Mel is right, don't cry as a angry kid !!!!


Use your brain, or source it out !

Transfering a value of 0-360 to 0-255 ?
What a heavy task !
perhaps: x*255/360 ?

And now, the final:
Converting a number -127..127 to -1..1 ?
perhaps: x/127 ?

Have a nice day, coding the FP-math. And after that you will see, it is not necessary, because your real problem has another - slim - solution.

Or use some of these f******* C-dinos around us.