Hallo,

bist Du sicher, dass die Erweiterung (R) mathematisch runden bedeutet?

Soweit ich weiss, wird bei der Erweiterung (R) nur sichergestellt, dass keine Dezimal-Stellen abgeschnitten werden.

Hier ist ein Auszug aus der RPG-Referenz, was die Erweiterung (R) bedeutet:
The ″Result Decimal Positions″ precision rule works the same as the default rule except that if the statement involves an assignment to a numeric variable or a conversion to a specific decimal precision, the number of decimal positions of any intermediate result is never reduced below the desired result decimal places.
In practice, you don’t have to worry about the exact precisions if you examine the compile listing when coding numeric expressions. A diagnostic message indicates that decimal positions are being dropped in an intermediate result. If there is an assignment involved in the expression, you can ensure that the decimal positions are kept by using the ″Result Decimal Positions″ precision rule for the statement by coding operation code extender (R).
Das Ergebnis wird also so genau (mit allen möglichen Dezimal-Positionen) wie möglich errechnet und anschließend kaufmännisch gerundet.

Birgitta