Rotary encoder together with arduino for measuring angle

How much precision do you need?