Skip to content

Changing the display of intervals #697

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

Open
OlivierHnt opened this issue Feb 8, 2025 · 0 comments · May be fixed by #698
Open

Changing the display of intervals #697

OlivierHnt opened this issue Feb 8, 2025 · 0 comments · May be fixed by #698
Labels
1.0 Planned for the major 1.0 release

Comments

@OlivierHnt
Copy link
Member

Currently, we often display a wider interval due to the truncation of the digits up to a certain decimal.

But this leads to some very misleading results:

julia> interval(2.5) # `2.5` is exactly representable
[2.49999, 2.50001]_com

julia> interval(0.1) # `0.1` is not equal to `1//10`
[0.0999999, 0.100001]_com

I think in both cases we should be consistent with how Julia handles showing floats and display [2.5, 2.5]_com and [0.1, 0.1]_com.
If we agree on modifying this behaviour, I suppose it is technically breaking, and will have to wait for 1.0.

@OlivierHnt OlivierHnt added the 1.0 Planned for the major 1.0 release label Feb 8, 2025
@OlivierHnt OlivierHnt linked a pull request Feb 21, 2025 that will close this issue
@OlivierHnt OlivierHnt linked a pull request Feb 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Planned for the major 1.0 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant