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