diff --git a/site/formulas.js b/site/formulas.js index 6627669..aeb0a15 100644 --- a/site/formulas.js +++ b/site/formulas.js @@ -384,19 +384,3 @@ async function loadSchnorrRef() { } } - -// ---------- Shared formatters ---------- - -function fmtBytes(n) { return n.toLocaleString() + ' B'; } - -function fmtCompressions(n) { - if (!isFinite(n)) return 'β'; - if (n >= 1e15) return n.toExponential(2); - if (n >= 1e12) return (n / 1e12).toFixed(2) + 'T'; - if (n >= 1e9) return (n / 1e9).toFixed(2) + 'G'; - if (n >= 1e6) return (n / 1e6).toFixed(2) + 'M'; - if (n >= 1e3) return (n / 1e3).toFixed(1) + 'K'; - return Math.round(n).toLocaleString(); -} - -function fmtCpb(n) { return n.toFixed(3); } diff --git a/site/index.html b/site/index.html index 6b112b0..6ac4701 100644 --- a/site/index.html +++ b/site/index.html @@ -4,9 +4,10 @@
-