function e(e){if(e==null)return`0`;let n=typeof e==`string`?Number(e):e;if(typeof n!=`number`||Number.isNaN(n))return String(e);let r=Math.abs(n),i=n<0?`-`:``;return r>=1e8?i+t((r/1e8).toFixed(2))+`亿`:r>=1e4?i+t((r/1e4).toFixed(1))+`万`:n.toLocaleString(`zh-CN`)}function t(e){return e.includes(`.`)?e.replace(/\.?0+$/,``):e}export{e as t};