Invoice total error

Doctorcam cam at ellisonet.ca
Sun Apr 10 17:15:49 EDT 2005


* Mark Johnson (mrj001 at shaw.ca) wrote:
> Beth Leonard wrote:
> 
> >I am not an accountant so I do not know the "correct" way to figure
> >it, but clearly the current way is wrong.  Subtotal plus total tax
> >should always equal total bill.  It occurs to me that the "correct"
> >way may even differ from state to state or country to country.
> >
> > 
> >
> While I was living in Nova Scotia, I noticed that different shops 
> rounded differently.  For some, a tax of one-tenth of a cent was rounded 
> up to the next full cent.  For others, it would not be rounded up until 
> a half cent was reached.  I'm not sure what the "correct" way was 
> supposed to be for that province.  In any case, it may differ from shop 
> to shop within a tax jurisdiction, too.

Different strokes...

What I was taught in high school math (many years ago...) was that
any ratio that ended in .500000... was to be rounded up; anything else
was rounded down.  Where one runs into errors with computers is when
one fails to take into account the level of precision: for every
computation where specific precision is required, it is necessary to
calculate the rounding directly - the system cannot be relied upon to
provide the correct figure.

Cheers 
 
Cam


-- 
Cam Ellison  Ph.D.  R.Psych. #01417

Cam Ellison & Associates Ltd.
Management Psychology

RR 22    3446 Beach Avenue
Roberts Creek  BC  V0N 2W2

Phone: 604-885-4806
Fax:   604-885-4809



More information about the gnucash-user mailing list