Koha Test Wiki MW Canasta on Koha Portainer

Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.

For the current Koha Wiki, visit https://wiki.koha-community.org .

Money Calculations

From Koha Test Wiki MW Canasta on Koha Portainer
Jump to navigation Jump to search

This is mentioned in a comments on a couple of bugs in Mozilla.

Money amounts in the database should be handled by integer arithmetic not by floats with the inherent approximation and rounding errors that result. Most systems do calculation in cents and the insertion of the decimal separator is a matter of print formatting, this produces more reliable results. There are a couple of CPAN modules that introduce a money class. Even if not used their documentation is relevant on how to handle money amounts and calculations.

(BibLibre will deal with this RFC for 3.4)