borgar / numfmt

Full ECMA-376 number and date formatting in JavaScript
40 stars 9 forks source link

0.00E+00 incorrectly formats 40000000 as 0.40E+08 #32

Closed borgar closed 1 year ago

borgar commented 1 year ago

Using 0.00E+00, 40000000 is incorrectly output as 0.40E+08 instead of the the expected result 4.00E+07.