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

format result incorrect while digits are mass #762

Open
lushevol opened this issue Nov 22, 2024 · 0 comments
Open

format result incorrect while digits are mass #762

lushevol opened this issue Nov 22, 2024 · 0 comments

Comments

@lushevol
Copy link

numbro("123456789012345678901234567890").format({ mantissa: 2, optionalMantissa: true }) expect to return "123456789012345678901234567890" but returns "123456789012345680000000000000"

It can be reproduced on numbro playground,

image
check with link below
https://numbrojs.com/try-me.html?lang=en-US&value=123456789012345678901234567890&format=%7B%22mantissa%22%3A2%2C%22optionalMantissa%22%3Atrue%7D

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