2.0.27 • Published 3 years ago
@extra-number/from-scientific.min v2.0.27
Converts scientific notation to number.
This is part of package extra-number.
This is browserified, minified version of @extra-number/from-scientific. It is exported as global variable number_fromScientific. CDN: unpkg, jsDelivr.
number.fromScientific(txt);
// txt: scientific notation
const number = require('extra-number');
number.fromScientific('2.99792458×10⁸');
// 299792458 (speed of light, in m/s)
number.fromScientific('1.498*10³');
// 1498 (speed of sound in air, in m/s)
number.fromScientific('3.43 X 10 ^ 2');
// 343 (speed of sound in air, in m/s)