numeric vs float
float8 is binary floating point; numeric is exact decimal. Some decimal fractions cannot be stored exactly in a float.
task
Show that 0.1+0.2 differs from 0.3 as float8 and equals it as numeric (two booleans).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
float8 is binary floating point; numeric is exact decimal. Some decimal fractions cannot be stored exactly in a float.
Show that 0.1+0.2 differs from 0.3 as float8 and equals it as numeric (two booleans).