The fifth and last in a series of blogs covering common mistakes in Database and Application designs for financial calculations.
Method of Rounding:
There are many methods of rounding
- Half Round Up
- Half Round Down
- Round Towards Zero
- Round Away from Zero
- Round Half To Even
- Round Half To Odd
- Random Round
The built-in method of rounding in PostgreSQL is Half Round Up. Unfortunately, it is not the best approach, …