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

Arbitrary precision decimal #40

Open
ThomasdenH opened this issue Oct 31, 2020 · 0 comments
Open

Arbitrary precision decimal #40

ThomasdenH opened this issue Oct 31, 2020 · 0 comments

Comments

@ThomasdenH
Copy link
Contributor

Beancount has a specific system for dealing with precision, but it can handle arbitrarily large precision. Currently this crate uses rust_decimal, which has a 128 bit integer under the hood. However, that's insufficient for real world applications like cryptocurrency balances. It is of couse possible to lower the precision for transactions, but this as the link argues, this is not ideal. It can also create rounding errors that cause balance statements to fail later on (as I've dicovered).

So I'd like to move to an arbitrary precision decimal, or at least give users that option. I've not found 1.0.0 crates that do this, but I've found:

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