Experience-Monks / scientific-to-decimal

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

Range Error #1

Open aleksdjelic opened 6 years ago

aleksdjelic commented 6 years ago

Hello there, I'm getting this error, any idea how to overcome it ?

d:\path\node_modules\scientific-to-decimal\index.js:50
      rVal = value.toFixed(precision);
                   ^

RangeError: toFixed() digits argument must be between 0 and 20
    at Number.toFixed (native)
    at module.exports (d:\path\node_modules\scientific-to-decimal\index.js:50:20)
    ...

Very handy module tho.

shrpne commented 6 years ago

What value did you try to convert?