ArbNumerics.jl icon indicating copy to clipboard operation
ArbNumerics.jl copied to clipboard

Constructors in README.md not correct?

Open johnomotani opened this issue 10 months ago • 0 comments

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?

johnomotani avatar Aug 10 '23 08:08 johnomotani