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

Fix some edge cases in string and show for Arb and Acb #193

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

Joel-Dahne
Copy link
Collaborator

For compact output it uses the condense option for the string representation. This gives a shorted output in general, but not in all cases. For some exact input, such as integers, you get a much more compact output by not condensing the output and instead just removing the trailing zeros. It is not always clear which option is better however, so now it just computes both and takes the shortest.

With this change the matrix Arb[1 1] is now displayed as

1×2 Matrix{Arb}:
 1.0  1.0

instead of as

1×2 Matrix{Arb}:
 1.00{…72 digits…}  1.00{…72 digits…}

The matrix `Arb[1 1]` is now displayed as

1×2 Matrix{Arb}:
 1.0  1.0

instead of as

1×2 Matrix{Arb}:
 1.00{…72 digits…}  1.00{…72 digits…}
@Joel-Dahne Joel-Dahne merged commit 10b0f69 into master Apr 22, 2024
11 checks passed
@Joel-Dahne Joel-Dahne deleted the fix-show branch April 22, 2024 11:45
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

Successfully merging this pull request may close these issues.

2 participants