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

Decimal fractions cannot be displayed when using the ShorteningPolicy parameter #147

Closed
bvnhan72 opened this issue Nov 14, 2023 · 1 comment

Comments

@bvnhan72
Copy link

image Decimal fractions cannot be displayed when using the ShorteningPolicy parameter print('1200000'.toCurrencyString(shorteningPolicy: ShorteningPolicy.Automatic, mantissaLength: 2)); -> 1M The result should be 1.2M
@caseyryan
Copy link
Owner

caseyryan commented Nov 27, 2023

Shortening policy does not consider mantissa at all. It decides how to shorten the value on its own

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

2 participants