function e(e,t={digits:1}){if(!e)return`0`;if(t.full)return Intl.NumberFormat(`en-US`).format(e);let n=/\.0+$|(\.[0-9]*[1-9])0+$/;if(e<1)return e.toFixed(t.digits).replace(n,`$1`);var r=[{value:1,symbol:``},{value:1e3,symbol:`K`},{value:1e6,symbol:`M`},{value:1e9,symbol:`G`},{value:0xe8d4a51000,symbol:`T`},{value:0x38d7ea4c68000,symbol:`P`},{value:0xde0b6b3a7640000,symbol:`E`}].slice().reverse().find(function(t){return e>=t.value});return r?(e/r.value).toFixed(t.digits).replace(n,`$1`)+r.symbol:`0`}export{e as t};
//# sourceMappingURL=nformatter-BD3whgb_.mjs.map