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

BigFloat output incorrect for large exponents #316

Closed
dpsanders opened this issue Aug 9, 2019 · 4 comments · Fixed by #567
Closed

BigFloat output incorrect for large exponents #316

dpsanders opened this issue Aug 9, 2019 · 4 comments · Fixed by #567
Labels

Comments

@dpsanders
Copy link
Member

julia> IntervalArithmetic.atomic(Interval{BigFloat}, -Inf)
[-∞, -5.87565e+1388]₂₅₆

julia> prevfloat(big(Inf))
5.875653789111587590936911998878442589938516392745498308333779606469323584389875e+1388255822130839282

The exponent in the interval display is wrong (truncated).

cc @yashrajgupta

@yashrajgupta
Copy link
Contributor

@dpsanders What do we need to do here?

@dpsanders
Copy link
Member Author

Display the correct BigFloat exponent in the interval output.

@lbenet
Copy link
Member

lbenet commented Aug 13, 2019

I think the problem is related to the truncation in the standard output format:

julia> @format full
Display parameters:
- format: full
- decorations: false
- significant figures: 6

julia> IntervalArithmetic.atomic(Interval{BigFloat}, -Inf)
Interval(-Inf, -5.875653789111587590936911998878442589938516392745498308333779606469323584389875e+1388255822130839282)

@lbenet
Copy link
Member

lbenet commented Feb 15, 2023

Fixed (partially at least, since windows has issues with BigFloats) in the 1.0-dev branch...

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

Successfully merging a pull request may close this issue.

4 participants