2.0.27 • Published 5 years ago

@extra-number/to-scientific.min v2.0.27

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

Converts number to scientific notation.

This is part of package extra-number.

This is browserified, minified version of @extra-number/to-scientific. It is exported as global variable number_toScientific. CDN: unpkg, jsDelivr.

number.toScientific(n);
// n: a number
const number = require('extra-number');

number.toScientific(695700000);
// '6.957×10⁸' (radius of Sun in m)

number.toScientific(3390000);
// '3.3899999999999997×10⁶' (radius of Earth in m)

number.toScientific(0.000000000053);
// '5.3×10⁻¹¹' (radius of Hydrogen atom)
2.0.27

5 years ago

2.0.26

5 years ago

1.3.9

5 years ago

1.3.8

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.2.19

5 years ago

1.2.18

5 years ago