79737881

Date: 2025-08-17 14:19:36
Score: 1
Natty:
Report link

Keep using integers, but stop assuming one global “cents.” Store amounts as a signed BIGINT in the currency’s smallest unit (atomic unit) and add a currencies table that records decimals for each currency/token (USD=2, BTC=8, many tokens=6–18). This stays exact, compact, and fast (no floats) and handles rials/crypto.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prabhat Yadav