PBP manual states that COS interprets the input value as radians, but apparently interprets it as degrees.

for i=0 to 10

real[i]=cos i

next i

Returns

127....123

There's more to the story, so I guess I just don't understand it. Cos(60) returns 12, which is neither degrees nor radians input if scaling a (-1 to 1) output range to a (-127 to +127) specified output range.

Can someone explain how to get correctly scaled (-127 to 127, equivalent to -1 to 1) COS output for a raw radian input from the PBP COS function?

for i=0 to 10

real[i]=cos i

next i

Returns

127....123

There's more to the story, so I guess I just don't understand it. Cos(60) returns 12, which is neither degrees nor radians input if scaling a (-1 to 1) output range to a (-127 to +127) specified output range.

Can someone explain how to get correctly scaled (-127 to 127, equivalent to -1 to 1) COS output for a raw radian input from the PBP COS function?

## Comment