Constructors in README.md not correct?
johnomotani opened this issue · 0 comments
johnomotani commented
Are the examples in the README.md correct?
With ArbNumerics-1.3.3, I get errors like
julia> ArbFloat(2, 32)
ERROR: MethodError: no method matching ArbFloat(::Int64, ::Int64)
Closest candidates are:
ArbFloat(::T) where T<:Real
@ ArbNumerics ~/.julia/packages/ArbNumerics/OJfxd/src/values/constructors.jl:161
(::Type{T})(::Real, ::RoundingMode) where T<:AbstractFloat
@ Base rounding.jl:207
ArbFloat(::T; bits, digits, base) where T<:Number
@ ArbNumerics ~/.julia/packages/ArbNumerics/OJfxd/src/libarb/ArbFloat.jl:48
...
Stacktrace:
[1] top-level scope
@ REPL[18]:1
It seems to be required to use the keyword constructors - e.g. ArbFloat(2, bits=32)
now?