Numeral-js: Regression: numeral(1e-7).format() result is 'NaN' in 2.0.6, was '0' in 2.0.4

Created on 27 Mar 2017  路  4Comments  路  Source: adamwdraper/Numeral-js

Try this in node.js:

const numeral = require('numeral');
numeral(1e-7).format();

In 2.0.4, the result was '0' (which seems to be correct). In 2.0.6, the result is 'NaN'.

Most helpful comment

Hi there!
any news on that?

i've encountered the same problem

All 4 comments

Just ran into this as well.

+1: numeral(0.000000001).format() === "NaN"

I've submitted a PR but its failing due to connection issues w/ Saucelabs. Would appreciate any extra eyes on it.

Hi there!
any news on that?

i've encountered the same problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GitzJoey picture GitzJoey  路  4Comments

MisterGoodcat picture MisterGoodcat  路  3Comments

jfstephe picture jfstephe  路  4Comments

jonathanbergson picture jonathanbergson  路  6Comments

anselms picture anselms  路  4Comments