From 71c4e68a5ce60d24f247d5279fd424cc6e7357c2 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Mon, 19 Oct 2026 12:04:58 -0600 Subject: [PATCH] =?UTF-8?q?fmt:=20snap=20|n|=20<=20half=20a=20cent=20to=20?= =?UTF-8?q?exact=200=20=E2=80=94=20kills=20$-0.00=20from=20float-residue?= =?UTF-8?q?=20spend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {