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

Set precision to more than 100 #62

Open
frostblooded opened this issue Mar 15, 2020 · 4 comments
Open

Set precision to more than 100 #62

frostblooded opened this issue Mar 15, 2020 · 4 comments

Comments

@frostblooded
Copy link

frostblooded commented Mar 15, 2020

If i understand correctly, the maximum allowed precision is 100 even if I try to use with_prec. This is a very low number. I am trying to make a program that calculates Pi. Isn't there a way to increase the precision to something like 1,000,000?

@akubera
Copy link
Owner

akubera commented Mar 15, 2020

Well... you can clone and change the hard-coded value until the feature/simple-context branch is finally merged.

I think there are a few places that fix that precision to 100, like let max_precision = 100;

@akubera
Copy link
Owner

akubera commented Mar 15, 2020

If you want something a little less disappointing, maybe the rug crate would be better in the meantime. It wraps the standard GNU MPFR library, so it will be as efficient and accurate as you want.

@frostblooded
Copy link
Author

Nah, mate. I never meant to imply this crate is disappointing. I just wondered if I have missed something. Keep up the good work! :)

@BlinkyStitt
Copy link

Is there an issue or PR tracking the simple-context branch? Anything blocking the merge? I have a similar problem as OP and I think this would work for me. I'll look at rug though.

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

3 participants