Rounding error after stock split

Janis tuxnet at posteo.de
Tue Dec 5 17:05:50 GMT 2023


Hi all,

I have an issue with an 1/2 stock split where the resulting balance/quantity 
seems to be rounded to two digits rather then the precision defined for the 
security. Searching a bit I found https://bugs.kde.org/show_bug.cgi?id=445472 
with looked related in first place but might as well not be.

I took the demo file from said bug to reproduce the issue with the AppImage 
build from 72421dc1f9065fa31636f71b2ec86e0ae6552d3f (please find it attached). 
In the MethProfits ledger you can see a 1/2 split of 15.12340 shares (configured 
with fractions 1/100000) resulting in 30.2500 shares.

Might as well be that I'm missing something obvious as I never did that before 
- would be very happy to learn about that as well. :)

Cheers
Janis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: walter_white.kmy
Type: application/x-kmymoney
Size: 4200 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20231205/45fae229/attachment.bin>


More information about the KMyMoney mailing list