formatMoney(..., { withRoundedCents }) rounds to ISO 4217 minor units from Intl.NumberFormat().resolvedOptions() (RUB/USD 2, JPY 0, KWD 3; unknown codes 2).
A value rounded to zero loses its sign: -0.004 RUB → 0,00 ₽.
BigInt string arithmetic kept; no float.
CI: npm audit threshold low → moderate (owner decision). GHSA-gcqx-w48m-w2h4 (deepmerge ≤4.3.1, low, no patched release; build-only via vite-plugin-pwa → workbox-build) blocked every PR. README updated.
Verification
New test fails on develop (-0,00 ₽), passes now.
npm run verify green; CI commits/security/verify green.
Closes #118
- `formatMoney(..., { withRoundedCents })` rounds to ISO 4217 minor units from `Intl.NumberFormat().resolvedOptions()` (RUB/USD 2, JPY 0, KWD 3; unknown codes 2).
- A value rounded to zero loses its sign: `-0.004 RUB` → `0,00 ₽`.
- BigInt string arithmetic kept; no float.
- CI: `npm audit` threshold `low` → `moderate` (owner decision). GHSA-gcqx-w48m-w2h4 (deepmerge ≤4.3.1, low, no patched release; build-only via vite-plugin-pwa → workbox-build) blocked every PR. README updated.
## Verification
- New test fails on `develop` (`-0,00 ₽`), passes now.
- `npm run verify` green; CI commits/security/verify green.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #118
formatMoney(..., { withRoundedCents })rounds to ISO 4217 minor units fromIntl.NumberFormat().resolvedOptions()(RUB/USD 2, JPY 0, KWD 3; unknown codes 2).-0.004 RUB→0,00 ₽.npm auditthresholdlow→moderate(owner decision). GHSA-gcqx-w48m-w2h4 (deepmerge ≤4.3.1, low, no patched release; build-only via vite-plugin-pwa → workbox-build) blocked every PR. README updated.Verification
develop(-0,00 ₽), passes now.npm run verifygreen; CI commits/security/verify green.f1ccd3c7aeto7b2bd8d379