@open-nodo/money
v0.1.1
Published
Exact EUR decimal arithmetic and cent rounding for accounting and statutory reports.
Readme
@open-nodo/money
Exact EUR money arithmetic on decimal.js — dec, sumDecimal, round2 (ROUND_HALF_UP). Keep sums in Decimal and convert to number only at the DTO edge so legally-filed reports tie out to the cent. Interoperates with Prisma.Decimal (same lib). AGPL-3.0-or-later. Extracted from SanVincenzo src/lib/money.ts.
