throw NaN in calculator for permutations, factorial, etc. if inputs aren't integer