-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
math.log(0) differs from math.log(0L) #38226
Comments
This is maybe a minor nit, but math.log(0) raises an OverflowError |
Logged In: YES Ack! I realized this is probably platform-dependent. The results I Platform Python Version math.log(0) math.log(0L) |
Logged In: YES I'm happy enough the way it is. 2.2 specifically added the ability to get a good result for log If you want consistency for log(0.0), then Python cannot allow It might be better if the math module docs explained that the |
Logged In: YES Thanks, I'll see about getting a blurb added to the math module docs. |
Logged In: YES Reopened and assigned to Skip for a documentation patch he |
Logged In: YES I'll also note that the patch should be applied for 2.2.3; Thanks, Skip! |
Logged In: YES added note to Doc/lib/libmath.tex (v. 1.29 and 1.25.22.1). |
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: