looks wrong. The increment and decrement happens AFTER the value is passed to the constructor. So the supposed rounding does not actually happen.
The intended code was most likely as follows:
However, there is a chance that the entire Decimal::integralWideRound() is a dead code.
This method is used only once in functioncolumn.h in FunctionColumn::getDecimalVal(). This is a snippet:
The code should be further analysed what we should do:
- either remove the redundant method
- or fix it to perform rounding correctly