How to get the right rounding in EUR?

Hello,

I sell an ETF (iShares S&P 500) : 3 @ 621,515 EUR = 1864,545 EUR.

According to the rounding rules in EUR the amount of the transaction is 1864,55 EUR but KMM calculates 1864,54 EUR which is wrong.
How do I have to configure KMM to have the right rounding ?

In the currency editor I have
smallest account unit : 0,01
smallest cash unit : 0,01
rounding method : half up
prise precision : 2

In the investment detail of the ETF I have
price precision : 3

On
macos 15.3
KMM 5.1.2-281f69d70
KDE Frameworks Version 5.90.0
Qt Version 5.15.2
cocoa windowing system

Thank you for any help.

Marc.

A list of the available rounding methods including a description can be found on this (source code) page.

In case something is not working as expected we need to check into it.

Hi ipwizard,

I have seen this help. It is also available directly from the currency editor.
But the rounding method doesn’t affect the result of the calculation. With any method the result is not correct.

Here are my tests.
Note that I leave KMM and restart it before any new rounding test.

Investment detail :
price precision : 3

Currency editor :
smallest account unit : 0,01
smallest cash unit : 0,01
price precision : 2

Calculation : 3 * 621,515

rounding method : round
result = 1864,54

rounding method : half up
result = 1864,54

rounding method : half down
result = 1864,54

rounding method : promote
result = 1864,54

rounding method : truncate
result = 1864,54

rounding method : ceil
result = 1864,54

rounding method : floor
result = 1864,54

rounding method : never
result = 1864,54

BR,

Marc.

It’s the rounding method of the security not the currency. A few were missing in the settings dialog :frowning: Half up is what you are looking for.

OK.
Any idea when a MacOS version (Apple silicon) will be available with this fix ?

Most likely if at least one person who

  1. brings know how about the MacOS eco system, some equipment and tools
  2. has knowledge about programming
  3. has an idea about CI/CD pipelines
  4. has some spare time
  5. loves to communicate with other people
  6. loves to dive into the craft build system

Personally, I only cover 2, 3 and 5 from the above so I am not eligible :slight_smile: though I am eager to help where I can.

1 Like