Koha Test Wiki Canasta - March 2024
One of a series of test instances for migrating the Koha Wiki MediaWiki database.
For the current Koha Wiki, visit https://wiki.koha-community.org .Money Calculations
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)