2.0.27 • Published 3 years ago

@extra-number/significant-digits.min v2.0.27

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

Counts the number of significant digits of a number.

Based on the solution provided by @Jos de Jong. This is part of package extra-number.

This is browserified, minified version of @extra-number/significant-digits. It is exported as global variable number_significantDigits. CDN: unpkg, jsDelivr.

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

number.significantDigits(0.0034);
// 2

number.significantDigits(120.5e50);
// 4

number.significantDigits(120.5e-50);
// 4

references

2.0.27

3 years ago

2.0.26

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.19

4 years ago

1.2.18

4 years ago