I think it's a rounding problem.

The command to calculate the balance is the default *ledger balance*.

The fixed version of this specifies a commodity with decimal places.






*commodity $  format $1,234.562009/01/01 Shell  Expenses:Gasoline
 11 GAL {=$2.299} @ $2.30  Assets:Checking*

Without the commodity specification, ledger seems to round the amounts to
the nearest whole.



*Igbanam*


On Sun, Jul 27, 2025 at 9:20 PM John Wiegley <[email protected]> wrote:

> >>>>> "MM" == Marcelo Muñoz <[email protected]> writes:
>
> MM> While reading the manual '4.5.3 Fixing Lot Prices', I came across this
> MM> example.
>
> MM>      2009/01/01 Shell
> MM>          Expenses:Gasoline             11 GAL {=$2.299} @ $2.30
> MM>          Assets:Checking
>
> MM>  When I calculate the balance for this example, the Cash account
> balances
> MM> at $-25 and not $-25.29. Is this correct, or am I misunderstanding
> MM> something?
>
> Hi Marcelo, can you please include the command you used to “calculate the
> balance”?
>
> Thanks, John
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/ledger-cli/m2freho079.fsf%40gmail.com.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/ledger-cli/CAOmRJreoi4FFYHCGuAaWJR4JZncYpFzGYYH22meh_WQKErf63g%40mail.gmail.com.

Reply via email to