I do not know whether this is a known issue or a bug.  The display 
precision is affected by space between '@' symbol and lot price. If there 
is no space between them then the precision is improved if it is more than 
the amount. If there is a space the precision of lot price is ignored.

If i give this input 

; no round off occur 
2014-05-31 *
  A             2 eur @$5.01
  C
  
2014-05-31 *
  A             1 eur @$5.01
  C
  
  
2014-05-31 *
  A             1 eur @$5.01
  C
  
I get 
ledger -f legtest/test.txt -V bal
               20.04  A
              -20.04  C
--------------------
                   0

and if I give this 

###########################################
; round off occur and there is space between '@' symbol and lot price
2014-05-31 *
  A             2 eur @  $5.01
  C
  
2014-05-31 *
  A             1 eur @  $5.01
  C
  
  
2014-05-31 *
  A             1 eur @  $5.01
  C
  
I get his 
ledger -f legtest/test.txt -V bal
                 $20  A
                $-20  C
--------------------
                   0

 
https://github.com/tripun/legtest/blob/master/lotpricespace.txt

Any way to correct this ?

Regards
Tripun Goel




-- 

--- 
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/d/optout.

Reply via email to