[kmymoney] [Bug 489451] When buying stocks with precision>2, the rounding rule used in the ledger is wrong
matt
bugzilla_noreply at kde.org
Sun Jun 30 16:18:14 BST 2024
https://bugs.kde.org/show_bug.cgi?id=489451
--- Comment #2 from matt <kdebugs.m7 at xoxy.net> ---
I downloaded and tested the AppImage named
kmymoney-5.1-3218-linux-gcc-x86_64.AppImage (version 5.1.3-eef04f1 in the UI).
This version is much better.
Only small detail left, 1.0051 is rounded up which is correct but the value
1.0050 is rounded down when using the round option, I think it should be
rounded up.
It seems there is no international standard but the EU provided one for the
euro :
https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=LEGISSUM:l25025&from=FR
Rounding rules
Monetary amounts in euros must, when a rounding takes place, be rounded up
or down to the nearest cent.
Monetary amounts converted into a national currency unit must be rounded up
or down to the nearest sub-unit or in the absence of a sub-unit to the nearest
unit.
National law or practice is to be respected such that, in some countries,
rounding may be to a multiple or fraction of the sub-unit or unit of the
national currency.
**If the application of the conversion rate gives a result which is exactly
half-way, the sum is rounded up.**
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list