Skip to content

A function which will convert scientific numbers to decimal strings.

License

Notifications You must be signed in to change notification settings

Experience-Monks/scientific-to-decimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scientific-to-decimal

experimental

A function which will convert scientific numbers to decimal strings.

Usage

NPM

Example

scientificToDecimal(1e+32); // '100000000000000000000000000000000'
scientificToDecimal(4.345e+21); // '4345000000000000000000'
scientificToDecimal(1e-9); // '0.000000001')
scientificToDecimal(4.34e-14); // '0.0000000000000434'

// will handle other numbers also
scientificToDecimal(33); // '33'
scientificToDecimal(NaN); // 'NaN'

License

MIT, see LICENSE.md for details.

About

A function which will convert scientific numbers to decimal strings.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published