We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While playing with the .timedot format, I noticed a rounding error. Here's a simple example to reproduce.
.timedot
Example file:
; test.timedot 2023-10-03 Test Account 15m
Command used to print the ledger:
$ hledger print -f test.timedot # 2023-10-03 * # (Test Account) 0.24999999999999999
Version info:
$ hledger --version # hledger 1.31, mac-aarch64
The text was updated successfully, but these errors were encountered:
I have pushed a fix, which should land in master soon. Thanks for the report!
Sorry, something went wrong.
More details: this affected quantities with a number and a unit (like 15m). Now after conversion to hours they are rounded to two decimal places.
15m
9ead8a6
Beautiful, thank you!
No branches or pull requests
Description
While playing with the
.timedot
format, I noticed a rounding error. Here's a simple example to reproduce.Example file:
Command used to print the ledger:
Version info:
$ hledger --version # hledger 1.31, mac-aarch64
Resources
The text was updated successfully, but these errors were encountered: