Solution: Use NUMERIC Data Type

SQL Antipatterns — by Bill Karwin (64 / 164)

Rounding-Errors/soln/numeric-columns.sql
​ ALTER ​TABLE​ Bugs ADD COLUMN hours NUMERIC(9,2);
​ ALTER ​TABLE​ Accounts ADD COLUMN hourly_rate NUMERIC(9,2);