-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
[Bug Report] Box contains treats float(inf) unexpectedly #493
Comments
does this happen only with |
Ok, this is a really weird bug from the outlook In short, In particular, the get_inf function ignores the actual value passed just knowing that it was an infinite (ignoring that you passed a positive infinity as the lower bound) and returns a positive or negative infinity depending on if it is for the lower and upper bound. I agree that this is a hidden behaviour that you don't expected from the outside. |
@mzat-msft This is actually a very interesting case. What are you exactly trying to achieve with using equal sign infinites as bounds for the Box space?
Fixing this issue is possible (though I'm more keen to just make the space throw an error to disallow this behaviour). |
There's no use case per se. There was this typo in our code and just thought it would be useful for you to know about it. |
I think it would be reasonable to do so but |
Describe the bug
When checking if a number is contained in a
Box
I getTrue
but I expect it to beFalse
.Code example
System info
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: