<div dir="ltr"><br><div class="gmail_extra">Hi Martin,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 9, 2014 at 12:41 AM, Martin Michlmayr <span dir="ltr"><<a href="mailto:tbm@cyrius.com" target="_blank">tbm@cyrius.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* tripun goel <<a href="mailto:tripun@gmail.com">tripun@gmail.com</a>> [2014-05-09 00:12]:<br>


<div class="">> The problem is that you cannot set this display precision before<br>
> hand. So if you have a transaction less precise than the actual<br>
> amount.<br>
<br>
</div>You can set the precision with D<br>
<br>
D $1000.00000<br>
<br>
2014-05-01 * Test<br>
    A     $0.01<br>
    B<br>
<br>
$ ledger -f c reg a<br>
2014-05-01 Test                 A                          $0.01000      $0.01000<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>Thanks for explaining , I also tried it and found it working.  <br><dl><dd><br></dd><dt><code>D AMOUNT</code></dt><dd><a name="index-xact-55"></a>
Specifies the default commodity to use, by specifying an amount in the
expected format.  The <samp><span class="">xact</span></samp> command will use this commodity as
the default when none other can be determined.  This command may be used
multiple times, to set the default flags for different commodities;
whichever is seen last is used as the default commodity.  For example,
to set US dollars as the default commodity, while also setting the
thousands flag and decimal flag for that commodity, use:

     <pre class="">          D $1,000.00
</pre></dd></dl><br></div></div>I gave the following test<br><br>D $1000.00000<br>2014/03/21 * Test Round off<br>  Expenses          1 EUR @  $0.0086<br>  Expenses                 1 CAD @  $0.0083<br>  Income     -$0.0     <br>

  <br>2014/03/21 * Test Round off<br>  Expenses          1 EUR @  $0.0086<br>  Expenses                 1 CAD @  $0.0083<br>  Income     -$0.02   <br>  <br>2014/03/21 * Test Round off<br>  Expenses          1 EUR @  $0.0086<br>

  Expenses                 1 CAD @  $0.0083<br>  Income     -$0.0169   <br>  <br><br></div><div class="gmail_extra">and found it working even without round option. I received the expected error <br><br>edger -f legtest/round.txt --unround -V -E     balance<br>

While parsing file "/home/test/legtest/round.txt", line 6: <br>While balancing transaction from "/home/test/legtest/round.txt", lines 2-6:<br>> 2014/03/21 * Test Round off<br>>   Expenses          1 EUR @  $0.0086<br>

>   Expenses                 1 CAD @  $0.0083<br>>   Income      -$0.0     <br>>   <br>Unbalanced remainder is:<br>            $0.01690<br>Amount to balance against:<br>            $0.01690<br>Error: Transaction does not balance<br>

While parsing file "/home/test/legtest/round.txt", line 11: <br>While balancing transaction from "/home/test/legtest/round.txt", lines 7-11:<br>> 2014/03/21 * Test Round off<br>>   Expenses          1 EUR @  $0.0086<br>

>   Expenses                 1 CAD @  $0.0083<br>>   Income      -$0.02   <br>>   <br>Unbalanced remainder is:<br>           $-0.00310<br>Amount to balance against:<br>            $0.01690<br>Error: Transaction does not balance<br>

<br></div><div class="gmail_extra">What do you think , should it remain as an input format or it will do better as an option to command line ? I mean you cannot expect people to use it in input file if it is imported from other programs such as a csv or gnucash file? <br>

</div><div class="gmail_extra"><br>Regards<br></div><div class="gmail_extra">Tripun Goel<br></div></div>