Basically, I'd see code that looked like this:
assert(isNumeric(userInput)); if (!isNumeric(userInput)) { return ERR_INVALID_INPUT; }
Basically, I'd see code that looked like this: