Skip to content
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

0.0 <= Interval{Float64, Closed, Closed}(0.0, 1.0) returns false #221

Open
leoluecken opened this issue Jul 27, 2023 · 1 comment
Open

Comments

@leoluecken
Copy link

That's unexpected, isn't it?

With Julia 1.9.2 and Intervals v1.10.0

@leoluecken
Copy link
Author

@omus
Looking into this, the problem seems that there is no specific definition of <= for Intervals, which means the operation defaults to (x < y) | (x == y).

To fix this, one would probably implement corresponding operations along the lines of isless_xxx() in Interval.jl, lines 288 ff (at below ##### EQUALITY #####) - Just copy all that stuff to analogous functions islesseq_xxx(), right?

Refs. #14 <- I didn't dive into that, but might be relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant