It's a nice idea.  I have no four digit amounts; this gives no output.

    ledger -w -f 2013.led register | grep "\.\d\d[1-9]" 

My guess is ledger is doing floats instead of paired fixed precision, so 
some amount doesn't represent well in IEEE exactly, triggers the longer 
field, and then rounds back to zero ten-thousandths of a penny anyway.

Is there an easy way of specifying the amount to use rnd()?  I don't know 
the rnd or fomrat syntax, but like -d "a:rnd(a,2)"?

Thank you for your suggestions so far,

Charles

On Thursday, August 22, 2013 7:24:38 PM UTC-7, John Wiegley wrote:
>
> >>>>> Charles Merriam <[email protected] <javascript:>> writes: 
>
> > I've spent an hour or two trying to find a fairly simple problem.   I 
> want to 
> > specify an amount format for my reports.  I currently use this line in 
> my file: 
> >     D $1,000.00 
> > which seems to have no effect. 
>
> > I get this type of line in my bal report: 
>
> >     $6,595.0000    Charity 
>
> > and I want this type of line 
>
> >      $6,595    Charity 
>
> Ledger uses the "most specified" format that it ever sees.  If you have 4 
> digits of precision being reported, it means you used 4 digits of 
> precision 
> somewhere within your file.  I actually don't think Ledger gives you a way 
> of 
> throwing away that information in the final display! 
>
> 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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to