EUR and DZD: why we store money in minor units
Avoiding floating-point errors in invoices and reports by using integer minor units for every amount.
By Sanad team
- engineering
- money
Invoices are legal and financial artifacts. Small rounding errors compound across taxes, discounts, and line totals—so Sanad never stores money as floats.
Minor units
Amounts are stored as integers in the smallest currency unit (e.g. cents for EUR). Display layers format values for humans; the ledger stays exact.
EUR and DZD
We focus on EUR and DZD for teams operating across France, Algeria, and connected markets. The same rules apply: one integer, one currency code per amount.
Reports and exports
When you export or sync data, you get consistent figures that match your documents—no “0.01 off” surprises after reconciliation.