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

Force to show decimal in CommafWithDigits #105

Open
zeing opened this issue Nov 25, 2022 · 1 comment
Open

Force to show decimal in CommafWithDigits #105

zeing opened this issue Nov 25, 2022 · 1 comment

Comments

@zeing
Copy link

zeing commented Nov 25, 2022

My float64 number is 1000.00

Actual:
CommafWithDigits(1000.00, 2) => 1,000

Expect:
CommafWithDigits(1000.00, 2) => 1,000.00

When inputting a decimal like 2 it should have xxxx.xx

@zeing zeing changed the title Force to show decimal when use CommafWithDigits Force to show decimal in CommafWithDigits Nov 25, 2022
@sillyguodong
Copy link

I also think that this function should always return a string with the specified precision.

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