lastDigit and endUp