You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ** operator produces an error when it gets inf as an argument.
if I try.
>>>a=float('inf')
>>>a*a
inf
-but if I try
>>>a**2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>OverflowError: (34, 'Result too large')
I should get inf too.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: