globalize icon indicating copy to clipboard operation
globalize copied to clipboard

Extend number format to use string instead of number

Open xgenvn opened this issue 3 years ago • 4 comments

Due to the limitation of the javascript number format. Even with Intl API we still couldn't format a very large number, eg: feature: "integers out of (1e21, 1e-7)" Can I extend or add a plugin to use decimal.js (or an alternative) as a numeric wrapper?

xgenvn avatar Dec 16 '22 06:12 xgenvn

A plugin using BigInt (or its polyfil) would be welcome. Thanks!

PS: Either a plugin or a change that has little impact on footprint.

rxaviers avatar Dec 16 '22 13:12 rxaviers

@rxaviers Thanks for the response. Is there any plan for keeping the project alive so far, at least moving away from bower and grunt which are not considered mainstream anymore? I'm asking if the work for the external number formatting library can be put into the new version instead.

xgenvn avatar Dec 18 '22 09:12 xgenvn

A library modernization is definitely welcome too. Thank you!

rxaviers avatar Dec 18 '22 19:12 rxaviers

Is this still of interest @rxaviers? I use this excellent library very frequently for my work. I'd be happy to contribute to its modernization.

pau1tuck avatar Jan 17 '24 08:01 pau1tuck