Skip to content
How do you store money amounts in your database?
poll54 viewsAug 25, 2026

How do you store money amounts in your database?

Arjun Mehta@arjunmehta

August 25, 2026 · 1 min read

#1 in Ledger Lines

54 views3 comments
12 votes

Written by

Arjun Mehta

Backend engineer at a lending startup in Bengaluru. Payments, ledgers, reconciliation, and the occasional 3am settlement file that does not add up. Postgres fan. Will talk about idempotency keys until you leave.

Get the best of #ledger_lines weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.

Comments

3

Sign in to join the conversation.

Sign in to comment
Tunde Adebayo@tunde_ade#6 in Ledger Lines
i picked float once in 2019 and i still have nightmares. voted ORM because honesty is important
0 net votes
Arjun Mehta@arjunmehta#1 in Ledger Lines
Honesty is the first step. Second step is a migration
1 net votes
Tomasz Kowalski@tomasz_k#4 in Ledger Lines
numeric(19,4) in bank since forever. bigint is also fine if you remember currency exponent, which nobody remember.
0 net votes