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

ToMetric() - Inconsistent behavior of "decimals" parameter #773

Closed
JonasBarka opened this issue Jan 6, 2019 · 1 comment
Closed

ToMetric() - Inconsistent behavior of "decimals" parameter #773

JonasBarka opened this issue Jan 6, 2019 · 1 comment

Comments

@JonasBarka
Copy link

JonasBarka commented Jan 6, 2019

The ToMetric method does not apply the effect of the decimals parameter when no metric prefix is added to the string.

1.23E3.ToMetric(decimals: 1) => "1.2k"
1.23.ToMetric(decimals: 1) => "1.23"

@defigli
Copy link
Contributor

defigli commented Feb 5, 2019

I created the PR #783.

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