"use client";
import { formatDecimalParts as f } from "./formatDecimal.js";
var m;
function l(t, i) {
  var a = f(t, i);
  if (!a) return t + "";
  var e = a[0], o = a[1], r = o - (m = Math.max(-8, Math.min(8, Math.floor(o / 3))) * 3) + 1, n = e.length;
  return r === n ? e : r > n ? e + new Array(r - n + 1).join("0") : r > 0 ? e.slice(0, r) + "." + e.slice(r) : "0." + new Array(1 - r).join("0") + f(t, Math.max(0, i + r - 1))[0];
}
export {
  l as default,
  m as prefixExponent
};
