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

showall not working correctly for BigFloat #131

Closed
dpsanders opened this issue May 13, 2016 · 2 comments
Closed

showall not working correctly for BigFloat #131

dpsanders opened this issue May 13, 2016 · 2 comments

Comments

@dpsanders
Copy link
Member

dpsanders commented May 13, 2016

julia> a = DecoratedInterval(big(2), big(3), com)
[2, 3]₂₅₆

julia> showall(a)  # wrong
[2, 3]₂₅₆

julia> displaymode(format=:midpoint)  # wrong

julia> a
nothing

format=:full is "correct":

julia> a
DecoratedInterval(Interval(2.000000000000000000000000000000000000000000000000000000000000000000000000000000, 3.000000000000000000000000000000000000000000000000000000000000000000000000000000), com)

However, it does not have the desired effect of being able to copy and paste this into the REPL.
This would require the output to have big"2.000000000000000000000000000000000000000000000000000000000000000000000000000000"

@dpsanders
Copy link
Member Author

dpsanders commented Jun 21, 2016

This is mostly fixed in #146.
Currently get

DecoratedInterval(Interval(2.000000000000000000000000000000000000000000000000000000000000000000000000000000, 3.000000000000000000000000000000000000000000000000000000000000000000000000000000)₂₅₆, com)

which is not copyable-and-pastable due to the subscript 256.

We need a way to make a BigFloat with a given precision in Julia.

@dpsanders
Copy link
Member Author

Fixed by #210.

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