The whole point of a rotary encoder is that it ISN'T position oriented. If you want to have a control that's positional, use a potentiometer. Encoders simply give you pulses to tell you that it's moving in one direction or the other.
I want to convert he value from a rotary encoder to an angle value. I looked it up but couldn't find anything. Is there a way to do it?One solution I think of is to turn the encoder 360 degrees, read the values, see how much it changes and use that as the basis for and angle.(value read) / 360 would give me how much it changes for every angle. then I can do angle = (value read/(total value for 360 degrees) * 360