We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doing some optimisations, I encountered the lack of rounding method for MultiFloats:
ERROR: MethodError: no method matching round(::MultiFloat{Float64, 4}, ::RoundingMode{:Up}) Closest candidates are: round(::Real, ::RoundingMode; digits, sigdigits, base) at floatfuncs.jl:129 round(::Complex, ::RoundingMode) at complex.jl:1038 round(::Complex, ::RoundingMode, ::RoundingMode; kwargs...) at complex.jl:1038
Same thing happend for trunc. Setting:
trunc
import Base.round, Base.trunc Base.round(x::MultiFloat{Float64, 4}, y::RoundingMode{:Up}) = MultiFloat{Float64, 4}(Base.round(Float64(x),y)) Base.trunc(x::Type{Int64}, y::MultiFloat{Float64, 4}) = Base.trunc(x::Type{Int64}, Float64(y))
fixed the problem for my script, but i'm not sure it's the right thing to do.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Doing some optimisations, I encountered the lack of rounding method for MultiFloats:
Same thing happend for
trunc
. Setting:fixed the problem for my script, but i'm not sure it's the right thing to do.
The text was updated successfully, but these errors were encountered: