diff --git a/app/main.py b/app/main.py index fa22f89..4e31b95 100644 --- a/app/main.py +++ b/app/main.py @@ -599,7 +599,7 @@ function flash(msg, ok) { setTimeout(() => { f.className = 'flash'; }, 6000); } -function fmtMoney(n) { return '$' + (Number(n) || 0).toFixed(2); } +function fmtMoney(n) { const v = Math.abs(Number(n)) < 0.005 ? 0 : (Number(n) || 0); return '$' + v.toFixed(2); } async function load() { try {