Adjusting digits in a number using a rotary encoder