-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Base.literal_pow
undesired floating-point conversion for base of ±1
?
#53735
Comments
I don't think this is a bug because the docs for
and I think the reason for this is so that functions like |
the problem here is that one of the fundamental properties of literal pow is that it doesn't change the results for inputs where x^y returns an answer. |
IMO the problem is, that |
Base.literal_pow
behaves incorrectly for base of -1
.Base.literal_pow
undesired floating-point conversion for base of -1
?
I'm removing the "bug" label since this is the intended behavior for negative literal powers, regardless of the base, and it's not clear whether anything can or should be changed here in a type-stable way. |
Base.literal_pow
undesired floating-point conversion for base of -1
?Base.literal_pow
undesired floating-point conversion for base of ±1
?
This has been broken since at least 1.6
The text was updated successfully, but these errors were encountered: