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

formating a number which is long integer will get NaN, (more than 22 digit.) #724

Open
mantougg opened this issue Nov 10, 2021 · 3 comments · May be fixed by #741
Open

formating a number which is long integer will get NaN, (more than 22 digit.) #724

mantougg opened this issue Nov 10, 2021 · 3 comments · May be fixed by #741

Comments

@mantougg
Copy link

mantougg commented Nov 10, 2021

this.$numeral('1111122222333334444455555').format(0,0);

// return 'NaN'

spneshaei added a commit to spneshaei/Numeral-js that referenced this issue Dec 14, 2021
@nonaghazizadeh nonaghazizadeh linked a pull request Dec 22, 2021 that will close this issue
@jsDotx3
Copy link

jsDotx3 commented Jan 5, 2022

I have same bug, it's possible merge on main asap?

cc @adamwdraper , help me please!

@abhishek-deqode
Copy link

Same issue for me. more than 22 digits it shows NAN value. Same for 0.001 decimals as well.

cc @adamwdraper

@abhishek-deqode
Copy link

Hello devs, I created a small library to resolve the issues with Numeral.js. Here is the npm package link. https://www.npmjs.com/package/custom-numeral

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

Successfully merging a pull request may close this issue.

3 participants