Fix for check if calculator has overflowed or underflowed a number.