JuliaLang/julia

generalize our `BigFloat(::Float64)` method to more integer and floatingpoint types.

Open

#50,940 opened on Aug 16, 2023

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Julia (5,773 forks)batch import
bignumsgood first issueperformance

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

Description

https://github.com/JuliaLang/julia/pull/47546 made BigFloat(::Float64) about 2x faster, but basically the same optimization could be done for the common Integer types (Base.BitInteger64), Base.IEEEFloat and Rational (where the denominator is a power of 2).

Contributor guide