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

Defining a mag_get_str function #1842

Open
Joel-Dahne opened this issue Mar 17, 2024 · 0 comments
Open

Defining a mag_get_str function #1842

Joel-Dahne opened this issue Mar 17, 2024 · 0 comments

Comments

@Joel-Dahne
Copy link
Contributor

There doesn't exist any mag_get_str, I think this would be convenient to have. There is currently only mag_print for printing and the output format for that is not the most convenient in many cases (for example it prints 1 as (536870912 * 2^-29))

I have noticed that the recent printf version internally converts to arf and uses arf_get_str. We are planning to switch to using this also in Arblib.jl.

Converting to arf has the drawback that the output is not always rounded upwards, so the resulting number is not necessarily an upper bound of the mag value. Since mag-functions in general always return upper bounds I think having the string conversion also return an upper bound would be appropriate.

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