Calculator with functionality that checks for digits.