From 431964fbef73970d5e559df52edef0b1cbbe4622 Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Thu, 7 Dec 2023 08:27:02 -0600 Subject: [PATCH] Remove the GMP.round function (#52319) --- base/gmp.jl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/base/gmp.jl b/base/gmp.jl index 7cfcbd21e29da..b66c2eed9ae8d 100644 --- a/base/gmp.jl +++ b/base/gmp.jl @@ -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))