Don’t know how
Gonna need more details. What platform (cortex/V5)? What programming language? What encoder (IME, V5 motor, red quad encoder)?
As a general rule of thumb, expect the amount of effort in responses to your question to scale with the amount of effort you put into the question.
Oh, sorry we are in a comp right now in a rush. we have V5 and the motor encoder integrated in motor VCS
What programming language? The more information you give us the faster we can answer your question. Dragging it out like this only slows everyone down.
For VCS and Robot Mesh Studio C++ it should be
for zero or
vex::motor::setRotation (double value, rotationUnits units)
for an arbitrary value. (For V5 hardware, of course.)