underflow and overflow errors site:stackoverflow.com - Search