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

wrong output for 0,00.0000000000000000000000000a formatting #793

Open
meghna786 opened this issue Aug 28, 2024 · 0 comments
Open

wrong output for 0,00.0000000000000000000000000a formatting #793

meghna786 opened this issue Aug 28, 2024 · 0 comments

Comments

@meghna786
Copy link

meghna786 commented Aug 28, 2024

So I tried
numeral(30).format('0,00.0000000000000000000000000a')
and answer is '29.9999999999999964472863212'

surprisingly when I add one more zero to formatting the answer is correct.
numeral(30).format('0,00.00000000000000000000000000a')
'30.00000000000000000000000000'

please fix this issue.

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