Skip to content

BUG: ^(::Float64, ::Union{Int, Float64}) incorrect for very large negative exponents #53881

Closed

Description

The floating point power function fails for a border case of integer argument:

julia> 2.0 ^ typemin(Int) # should be 0.0
0.5

julia> (-1.0) ^ typemin(Int) # should be 1.0
-1.0

The bug seems to be here: Base.Math.pow_body(::Float64, ::Integer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviormathsMathematical functionsregression 1.10Regression in the 1.10 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions