Skip to content

Commit

Permalink
Remove the GMP.round function (#52319)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Dec 7, 2023
1 parent 39ccdb2 commit 431964f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions base/gmp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,6 @@ function BigInt(x::Float64)
unsafe_trunc(BigInt,x)
end

function round(::Type{BigInt}, x::Union{Float16,Float32,Float64}, r::RoundingMode{:ToZero})
isfinite(x) || throw(InexactError(:trunc, BigInt, x))
unsafe_trunc(BigInt,x)
end

BigInt(x::Float16) = BigInt(Float64(x))
BigInt(x::Float32) = BigInt(Float64(x))

Expand Down

0 comments on commit 431964f

Please sign in to comment.