Skip to content
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

Float64 raised to an integer's typemin produces incorrect result #57463

Open
mbarbar opened this issue Feb 19, 2025 · 6 comments
Open

Float64 raised to an integer's typemin produces incorrect result #57463

mbarbar opened this issue Feb 19, 2025 · 6 comments
Labels

Comments

@mbarbar
Copy link

mbarbar commented Feb 19, 2025

Some examples showing this

julia> 1.1^typemin(Int)
0.9090909090909091

julia> 1.1^(typemin(Int)+1)
0.0

julia> 1.1^Float64(typemin(Int64))
0.0
julia> 0.05^typemin(Int)
20.0

julia> 0.05^(typemin(Int)+1)
Inf
@oscardssmith
Copy link
Member

These both are fixed on master.

@nickrobinson251
Copy link
Contributor

Do you know which commit(s) fixed them? Since these are bugs, i wonder if the fix can be backported to the LTS release?

@oscardssmith
Copy link
Member

probably #53967

@NHDaly
Copy link
Member

NHDaly commented Feb 19, 2025

thoughts on a backport, oscar?

@oscardssmith
Copy link
Member

I've added backport labels. This wasn't originally backported because I thought it was only a perf improvement but since it's a bugfix, we might as well.

@martinholters
Copy link
Member

Should add tests (and backport them, too) for this case, then.

@nsajko nsajko added the maths Mathematical functions label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants