rounding errors in tax calculation

E Dodd edodd at billiau.net
Wed Mar 9 05:18:31 EST 2005


On Wednesday 09 March 2005 03:36, Derek Atkins wrote:
> We probably need a configuration to decide whether to round up or
> round down.  In either case, this should definitely be consistent.  I
> presume you mean that the invoice window, transaction amount, and
> printed invoice don't all show the same values?  Which copy shows
> which version?
>
> -derek
>
> E Dodd <edodd at billiau.net> writes:
> > When I enter an item in an invoice (sent to me), this example $5.45 + 10%
> > tax the system gives me tax $0.54; when the invoice gives me tax $0.55.
> > According to the (local?) rules the last .005 on the tax gets rounded up
> > but gnucash rounds it down.
> >
> > Liz

the invoice is generated elsewhere. it rounds up, because this is our 
convention (Au).
I can make mine balance by entering the invoice as total $6.00, making it 
including tax, because then the tax is $0.55.
Gnucash is internally consistent, but rounds down when the number is 0.1 to 
0.5 and rounds up when the number is 0.6 to 0.9. 
However, 0.5 should be rounded up for au and uk at least.
Liz

-- 
Cheese -- milk's leap toward immortality.
  -- Clifton Fadiman, "Any Number Can Play"


More information about the gnucash-user mailing list