Summary: | rounding error when creating the transfer between two accounts in different currencies with option "to amount" | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | vy |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | markgran |
Priority: | NOR | ||
Version: | 4.6.3 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kmymoney/8901699c749384497fe6ee71309e868466c20e49 | Version Fixed In: | |
Sentry Crash Report: |
Description
vy
2013-10-13 10:02:39 UTC
Bug https://bugs.kde.org/show_bug.cgi?id=300965 may be related. It's really the same bug as in https://bugs.kde.org/show_bug.cgi?id=300965 , and still present in v. 4.6.4. Git commit 8901699c749384497fe6ee71309e868466c20e49 by Thomas Baumgart. Committed on 27/12/2013 at 12:04. Pushed by tbaumgart into branch 'master'. Fix precision of price returned from price entry dialog The returned price was truncated by the global price precision which could cause all kinds of trouble when an amount was entered but the price precision was not large enough to yield the same result in the equation result = amount / price * price; Now the price is returned without precision loss in case it is based on an amount (method is selected by the user in the dialog). In the case the price is entered it is returned with the global price precision in effect. Related: bug 205254, bug 300965 M +8 -9 kmymoney/dialogs/kcurrencycalculator.cpp M +12 -1 kmymoney/dialogs/kcurrencycalculator.h http://commits.kde.org/kmymoney/8901699c749384497fe6ee71309e868466c20e49 |