import"./index.8d733f79.js";function a(t){const s=parseFloat(t);if(Number.isNaN(s))return t;const[r,n]=s.toString().split("."),e=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${e}.${n}`:e}function f(t,s=3){if(t==null||isNaN(t))return t;const r=t+"";if(r.includes(".")===-1||r.includes(".")&&r.split(".")[1].length<=3)return t;const n=Number(t),e=parseInt(n);let i=(n-e).toPrecision(s);return i.indexOf("e")===-1&&i.indexOf(".")!==-1&&(i=i.replace(new RegExp("\\.0+$|(?<=\\.[0-9]*?)0+$","g"),"")),e+Number(i)}export{a,f};
