Experience-Monks / scientific-to-decimal

A function which will convert scientific numbers to decimal strings.
MIT License
10 stars 2 forks source link

Conversion error #2

Open neerajsonii opened 6 years ago

neerajsonii commented 6 years ago

Facing Conversion error while converting "2.2e+21" , it returns me 22 but it should be 2200 and same for "1.5e+21" gives 15 should be 1500.

shrpne commented 6 years ago

scientificToDecimal("2.2e+21") returns "22000000000000000000"for me