Bug 286188

Summary: Amount does not update properly
Product: [Applications] kmymoney Reporter: jamadori
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.5.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description jamadori 2011-11-09 13:47:02 UTC
Version:           4.5.3 (using Devel) 
OS:                Linux

When updating the price of of a mutual fund, the resulting amount goes nuts, ie., if I multiply the price by the quantity it gives me an unrelated figure

Reproducible: Always

Steps to Reproduce:
Original quantity = 14,646298, original price 136,63150404 , reuslting amount= 2001,15

Step 1: Update price to 129



Actual Results:  
New amount = 44,7

Expected Results:  
1889,37

OS: Linux (i686) release 3.0.0-12-generic
Compiler: gcc
Comment 1 Thomas Baumgart 2011-11-09 15:02:57 UTC
This is caused by a multiply overflow and has been fixed with the usage of libgmp in KMyMoney >= 4.6.0. Please upgrade to solve the issue.