Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: How to calculate the sum of columns to be equal to 100?

by Laurent_R (Vicar)
on Aug 15, 2013 at 13:35 UTC ( #1049588=note: print w/ replies, xml ) Need Help??


in reply to Re: How to calculate the sum of columns to be equal to 100?
in thread How to calculate the sum of columns to be equal to 100?

Yes, fudging the data is one solution.

The company for which I work as an independent consultant spent a few years back several hundred thousand euros trying to get their invoices "look right" (about 20 million invoices per month). After a lot of thinking, simulations on Excel, consultations with accountants, auditors and tax advisers, prototyping, etc., it was finally decided that all the invoice individual lines and subtotals would have 5 decimal digits, and only the invoice total (and VAT) would be rounded to the nearest cent. There may still be some rounding differences, but, at least, nobody really cares about a difference of 0.00001 euro.


Comment on Re^2: How to calculate the sum of columns to be equal to 100?
Re^3: How to calculate the sum of columns to be equal to 100?
by choroba (Abbot) on Aug 15, 2013 at 13:46 UTC
    I have also seen invoices in which the last line before the invoice total is a "rounding compensation", something like -0.01.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049588]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-07-11 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (230 votes), past polls