[Koha-bugs] [Bug 13321] Tax and prices calculation need to be fixed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 13 18:07:36 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13321

Colin Campbell <colin.campbell at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |colin.campbell at ptfs-europe.
                   |                            |com

--- Comment #17 from Colin Campbell <colin.campbell at ptfs-europe.com> ---
The real question is what we are doing with the values less than a cent?
Remember also floats are not accurate. Financial apps that value accuracy
convert the database value to an integer in cents and do all calculations on
that then store it in a monetary form when saving it. That way any rounding is
done predictably and it avoids errors arising from the approximation in how
floats are stored and the inaccuracies in floating point arithmetic.

If calculating a percentage for tax or discount purposes it needs to be
calculated on the summed values, adding the individual values where they
contain subdivisions of a cent are prone to error

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list