get last digit