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

NaN Formatting #682

Open
zortext opened this issue May 25, 2020 · 3 comments
Open

NaN Formatting #682

zortext opened this issue May 25, 2020 · 3 comments

Comments

@zortext
Copy link

zortext commented May 25, 2020

BUG:
Please follow the steps;

var n=numeral(103.15 - 203.48 + 100.33);
// returns a {_input: 1.4210854715202004e-14, _value: 1.4210854715202004e-14}

n.format("0,0.00");
// returns NaN

@janabalkovicova
Copy link

It seems that it cannot format exponential numbers (in JS by default from 0.0000001 = e-7).

@TimePerformance
Copy link

Same bug
numeral(1e-15).format('0')
// returns NaN

@isaacsanders
Copy link

I downgraded to 2.0.4

AlirezaT99 added a commit to AlirezaT99/Numeral-js that referenced this issue Dec 21, 2020
AlirezaT99 added a commit to AlirezaT99/Numeral-js that referenced this issue Dec 21, 2020
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

4 participants