Skip to content

Commit

Permalink
Remove dubious methods that convert floats to integer values (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Feb 23, 2024
1 parent 4111c9f commit c44b804
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/HeckeMiscInteger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,6 @@ end
#end


function *(a::ZZRingElem, b::BigFloat)
return BigInt(a) * b
end

function *(a::BigFloat, b::ZZRingElem)
return BigInt(a) * b
end

function *(a::ZZRingElem, b::Float64)
return BigInt(a) * b
end

function *(b::Float64, a::ZZRingElem)
return BigInt(a) * b
end

function *(a::QQFieldElem, b::Float64)
return Rational(a) * b
end

function *(b::Float64, a::QQFieldElem)
return Rational(a) * b
end

function convert(R::Type{Rational{Base.GMP.BigInt}}, a::ZZRingElem)
return R(BigInt(a))
end
Expand Down

0 comments on commit c44b804

Please sign in to comment.