function a(e) {
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function r(e, n) {
  if (!isFinite(e) || e === 0) return null;
  var i = (e = n ? e.toExponential(n - 1) : e.toExponential()).indexOf("e"), t = e.slice(0, i);
  return [
    t.length > 1 ? t[0] + t.slice(2) : t,
    +e.slice(i + 1)
  ];
}
export {
  a as default,
  r as formatDecimalParts
};
