If the number of significant digits in the input is not fixed, it becomes challenging to achieve consistent results by rounding.for examplepostgres=# select round(1.003/1.002*5.01,2); ?column?-------------------------- 5.01 (1 row)postgres=# select round(1.003*5.01/1.002,2); ?column?-------------------- 5.02(1 row)
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных