const c=r=>{const s=String(r);if(!/^-?\d+(\.\d+)?$/.test(s))return r;const e=s.split(".");let t=e[0];const i=e[1],n=t.startsWith("-");n&&(t=t.substring(1));const o=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");let a=n?"-"+o:o;return i!==void 0&&(a+="."+i),a};export{c as f};
