<br><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 11:41 AM, Cristian Oneţ <span dir="ltr">&lt;<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/11/16 Alvaro Soliverez &lt;<a href="mailto:asoliverez@gmail.com">asoliverez@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt;<br>
&gt;<br>
&gt; On Sun, Nov 15, 2009 at 5:10 PM, Cristian Oneţ &lt;<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; În data de Sîmbătă 14 Noiembrie 2009 00:38:28 Alvaro Soliverez a scris:<br>
&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; Another issue I&#39;ve just found is the difference between the budget<br>
&gt;&gt; &gt; &gt;&gt; and<br>
&gt;&gt; &gt; &gt;&gt; the budget report. For example I&#39;ve allocated 1000 for a category in<br>
&gt;&gt; &gt; &gt;&gt; the<br>
&gt;&gt; &gt; &gt;&gt; budget<br>
&gt;&gt; &gt; &gt;&gt; view and in the &#39;Actual vs. budget&#39; report I only see 999,96<br>
&gt;&gt; &gt; &gt;&gt; allocated<br>
&gt;&gt; &gt; &gt;&gt; for that category.<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; I will check this too, since reports are my area. It seems to be a<br>
&gt;&gt; &gt; &gt; severe<br>
&gt;&gt; &gt; &gt; case of rounding.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Check the price for the 1st day of the month, or the next price<br>
&gt;&gt; &gt; available<br>
&gt;&gt; &gt; prior to that.<br>
&gt;&gt; I don&#39;t think that it has anything to do with prices. I could be wrong but<br>
&gt;&gt; maybe the following thing happens:<br>
&gt;&gt; I allocate for an expense category 1000 RON. This is computed in the<br>
&gt;&gt; reports<br>
&gt;&gt; as a monthly 83,33 (this is a displayed value, the actual value should be<br>
&gt;&gt; 83,<br>
&gt;&gt; (3) or 83,3333333 endlesly). When 12 months of 83,33 is sumed up 999,96<br>
&gt;&gt; results.<br>
&gt;&gt;<br>
&gt;<br>
&gt; In this case, it is a severe case of rounding.<br>
&gt;<br>
&gt; To display on reports, the annual budget is divided by 12 and rounded. Then,<br>
&gt; if a total column is displayed, the columns are summed up, and rounded. So,<br>
&gt; for those cases there will be a difference. Keep in mind that the total<br>
&gt; column might for a different number of months than the budget, eg. the 3<br>
&gt; next months or so.<br>
&gt;<br>
&gt; What I could do in these cases is rounding the number to decimal places + 1.<br>
&gt; That would avoid most problems but the most severe cases.<br>
</div></div>I didn&#39;t take a look a the code so sorry if my suggestion is out of<br>
line. So here it is: Couldn&#39;t this be solved if each report cell value<br>
is a MyMoneyMoney object?<br>
Or they are already MyMoneyMoney objects and case the rounding themselves?<br></blockquote></div><br>They are MyMoneyMoney objects and they are rounded when the budget is calculated into the cells (different periods, currencies, and so on, make it a not so straightforward process to display the budget).<br>
<br>And you do have to round them when dealing with multiple currencies because of overflow issues. The denom starts growing very quickly and you end up very quickly with a nonsense number like -3.123412341234   :)<br><br>
<br>