From 0f1e7aaaf169241f9b0eaf4a82972db989d497f8 Mon Sep 17 00:00:00 2001 From: Martin Vala Date: Mon, 30 Mar 2026 15:36:41 +0200 Subject: [PATCH] Resolve "Improve content and presition" --- src/lib/components/ui/shared/BinInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/ui/shared/BinInfo.tsx b/src/lib/components/ui/shared/BinInfo.tsx index 0208fb6..a956fb7 100644 --- a/src/lib/components/ui/shared/BinInfo.tsx +++ b/src/lib/components/ui/shared/BinInfo.tsx @@ -15,7 +15,7 @@ function formatSmartNumber( const num = Number.parseFloat(String(val)); const abs = Math.abs(num); if (num !== 0 && (abs >= 1e6 || (abs > 0 && abs < 1e-3))) { - return num.toExponential(); + return num.toExponential(precision); } return num.toFixed(precision); }