[Kmymoney-devel] [kmymoney4] [Bug 205254] Rounding error on investments

Thomas Baumgart thb at net-bembel.de
Fri Dec 27 12:09:46 UTC 2013


Thomas Baumgart <thb at net-bembel.de> changed:

           What    |Removed                     |Added
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/kmym
                   |                            |oney/8901699c749384497fe6ee
                   |                            |71309e868466c20e49

--- Comment #3 from Thomas Baumgart <thb at net-bembel.de> ---
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 325953, bug 300965

M  +8    -9    kmymoney/dialogs/kcurrencycalculator.cpp
M  +12   -1    kmymoney/dialogs/kcurrencycalculator.h


You are receiving this mail because:
You are the assignee for the bug.

More information about the KMyMoney-devel mailing list