import { formatUnits as n } from "ethers";
import { isValidFloat as e } from "../checkers/isValidFloat.js";
import { isOnlyZerosAndDot as m } from "../checkers/isOnlyZerosAndDot.js";
import { trimDecimals as s } from "./trimDecimals.js";
const D = (r, t, o = 5) => {
  if (m(r))
    return r;
  if (!e(r) || !t)
    return "";
  const i = n(r, t), f = o ? s(i, o) : i;
  return m(f) ? "" : f;
};
export {
  D as formatBigToHuman
};
//# sourceMappingURL=formatBigToHuman.js.map
