-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
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
Interval(1..2, 3..4) crashes Julia #182
Comments
On 0.6; IA on Julia 0.7 is currently broken. |
It seems to be a display issue: julia> Interval(1..2, 3..4)
Error showing value of type IntervalArithmetic.Interval{IntervalArithmetic.Interval{Float64}}:
ERROR: StackOverflowError:
julia> setformat(:full)
6
julia> Interval(1..2, 3..4)
Interval(Interval(1.0, 2.0), Interval(3.0, 4.0)) It doesn't crash the REPL for me (Julia 0.6.4 on Windows) thought. The |
The crash comes from here: round_string(x::Real, digits::Int, r::RoundingMode) = round_string(big(x), digits, r) If However, we should probably not silently accept something like Interestingly enough, this boils down to the fact that since |
Thanks for finding the problem! I think this should just give an error. |
[Mistake for IntervalBox.]
The text was updated successfully, but these errors were encountered: