get_number now recognizes negative exponent values