Should you store money as DECIMAL? As an INTEGER in the most basic unit of a currency?


As a NUMERIC with a suitable scale (digits after the decimal point).

For instance, Interest can create money amounts with arbitrary scale.

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.