Solution: Use NUMERIC Data Type

Let's solve the antipattern by using the NUMERIC data type.

Instead of FLOAT or its siblings, let’s use the NUMERIC or DECIMAL SQL data types for fixed-precision fractional numbers.

Get hands-on with 1300+ tech skills courses.