daydreamer daydreamer - 4 days ago 7
SQL Question

PostgreSQL: Which Datatype should be used for Currency?

Seems like

Money
type is discouraged as described here

My application needs to store currency, which datatype shall I be using? Numeric, Money or FLOAT?

Answer

Numeric. Never use float for currency, and the money type is just left in for historical reasons as far as I can tell.

Comments