Best practice for declare field Numeric and Float Field


Normally Quantity field will use Float Field and Price field using Numeric.
Can Anyone explain to me what the different between Float and Numeric field?

Best regards,
Markus Bala

Numeric fields have no rounding issue during computation because it uses python decimal and numeric type of PostgreSQL.
This is the recommended type for money or any quantities which requires exact precision but they come with a little extra cost than float.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.