In reply to Ahmed Al-Attar.

Thanks for the comment, Ahmed! I hope that you didn't take my labeling of your code as "dangerous" as a slight -- I think it's valuable to have awareness of powerful functions like these, even if they require some care during use. And yes -- your approach is more flexible for multidigit comparisons.