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

Price rounding #65

Open
antage opened this issue Nov 10, 2021 · 0 comments
Open

Price rounding #65

antage opened this issue Nov 10, 2021 · 0 comments

Comments

@antage
Copy link

antage commented Nov 10, 2021

I expect beanprice shouldn't rounding any price.
Due to beanprice writes prices with dcontext the rounding may happen.

$ bean-price -e 'RUB:yahoo/VTBR.ME'
2021-11-10 price VTBR.ME                           0.05053 RUB
$ bean-price current.beancount | grep VTBR
2021-11-10 price VTBR                                 0.05 RUB

current.beancount has commodity definition:

1970-01-01 commodity VTBR
  price: "RUB:yahoo/VTBR.ME"
$ bean-doctor display_context current.beancount
...
RUB             : sign=1   integer_max=5   fractional_common=2   fractional_max=2   "-00000.00" "-00000.00"
...
__default__     : sign=0   integer_max=1   fractional_common=_   fractional_max=_   "0.*" "0.*"
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