JuliaIntervals / IntervalArithmetic.jl

Library for validated numerics using interval arithmetic
https://juliaintervals.github.io/IntervalArithmetic.jl/
Other
290 stars 70 forks source link

`string(x::Interval)` is not working correctly #643

Closed dpsanders closed 2 months ago

dpsanders commented 2 months ago
julia> using IntervalArithmetic

julia> x = interval(1, 2)
[1.0, 2.0]_com

julia> string(x)
"Interval{Float64}(1.0, 2.0, com)"

string(x) should return the string version of what is displayed.

This points to a possible issue in the implementation of Base.show(io::IO, x::Interval)

OlivierHnt commented 2 months ago

Good catch. Should be fixed with the PR #644.