-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
1.31: amounts from balance assignments not contributing to inferred precision #2091
Comments
Hi, which version was working for you before, so I can compare ? Were you actually on 1.12 ? |
I see that 1.31 register shows less decimal digits than 1.30 here. I'll investigate, thank you! |
@PSLLSP , it took quite a while (there's a lot of confusing precision-related work going on), but yes this seems like a clear regression in 1.31, which tests did not cover. Thank you very much! Claim your http://hledger.org/regressionbounty when convenient. I have pushed the fix to master and hopefully will release a 1.31.1 before long. |
PS here's a shorter repro:
|
I see several issues. I am not sure, maybe it is just rounding, was something changed in newer
hledger
??First, balances are rounded, like 5014 USDT on the last line should be 5013.7654234 USDT
Second, some auto entries are missing (replaced with 0). Could be related to rounding? 0.123456 BTC is rounded to 0; you can send me 0.123456 BTC, it has no value... ;-) Oh wait, 0.49 BTC would be better, I will update this ticket with BTC address...
The same data in older
hledger
(hledger 1.12.1), bug is still there but some numbers are not rounded:DEMO journal, demo-bug.journal:
The text was updated successfully, but these errors were encountered: