Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

@extra-number/from-scientific

1.1.1 • Public • Published

Get number from scientific notation.

const fromScientific = require('@extra-number/from-scientific');
// fromScientific(<string>)
 
fromScientific('2.99792458×10⁸');
// 299792458 (speed of light, in m/s)
fromScientific('1.498*10³');
// 1498 (speed of sound in air, in m/s)
fromScientific('3.43 X 10 ^ 2');
// 343 (speed of sound in air, in m/s)

extra-number

Install

npm i @extra-number/from-scientific

DownloadsWeekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

2.67 kB

Total Files

4

Last publish

Collaborators

  • avatar