[kmymoney] [Bug 385993] Error in investment interest (Jahresrendite)

Ralf Habacker bugzilla_noreply at kde.org
Thu Nov 1 20:18:13 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=385993

--- Comment #5 from Ralf Habacker <ralf.habacker at freenet.de> ---
>"1989-11-01"   "0/1" 
>"2017-08-11"   "0/1" 
These values are the Initial and Ending Market Values and are listed in the
"Transaction by Account" report.

>  list += CashFlowListItem(QDate(2017, 8, 11), MyMoneyMoney(0.0));

Using the following line instead 

  list += CashFlowListItem(QDate(2014, 8, 11), MyMoneyMoney(0.0));

let 

  double value = list.IRR();

return a nan, which let the following code 

  MyMoneyMoney IRR(list.IRR(), 1000);

crash with a floating-point exception.

The question is whether the initially mentioned market values ​​are required,
or whether they can be omitted if they are zero.

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


More information about the KMyMoney-devel mailing list