Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to set significantDigits for compact format #39

Open
dzakyraf opened this issue Apr 19, 2023 · 0 comments
Open

Add option to set significantDigits for compact format #39

dzakyraf opened this issue Apr 19, 2023 · 0 comments

Comments

@dzakyraf
Copy link

Is your feature request related to a problem? Please describe.
Yes when we format this number: 1314731674000000 this turnout be 1,310T in web not 1,315T. After investigate this is because in web js have significantDigits in 3

Describe the solution you'd like
add option in settings for set this

Describe alternatives you've considered

Additional context
If u using intl in behind you can use this snipplets as inspiration:

var formatter = NumberFormat.compact(locale: "id_ID")
          ..significantDigits = 4;
String formatted = formatter.format(value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant