Normalizes exponential format in float-parseable strings.
If, for example, you want to work on floating point values without needing to parse it (as it loses the precision), and you want to be able to represent your values into an exponential notation, you'll need something like this package.
$ npm install --save @theoryofnekomata/normalize-exponential
var normalizeExp = ;var floatStr = '00003453.654345000e+34'normalizedFloat = ; // returns 3.453654345e+37// ...
It enforces the output to be in lowercase (i.e. 'e' instead of 'E').
Sure thing! Just clone the repo.
npm installupon initial clone.
npm testand make sure all the tests pass and properly written.
npm run lintto ensure consistency of your code (make sure to install ESLint first).
- Create PRs so that I can confirm and merge your contributions.
Please star the repo if you find it useful in your projects.
MIT. See LICENSE file for details.