math-utils-simple 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +16 -3
- package/src/rounding/ceil.js +3 -0
- package/src/rounding/clamp.js +7 -0
- package/src/rounding/floor.js +3 -0
- package/src/rounding/isBetween.js +11 -0
- package/src/rounding/normalize.js +7 -0
- package/src/rounding/round.js +3 -0
- package/src/rounding/roundDownToNearest.js +7 -0
- package/src/rounding/roundTo.js +4 -0
- package/src/rounding/roundToNearest.js +7 -0
- package/src/rounding/roundUpToNearest.js +7 -0
- package/src/rounding/snap.js +7 -0
- package/src/rounding/truncate.js +3 -0
- package/src/rounding/wrap.js +9 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// ARITHMETIC
|
|
2
|
-
|
|
3
2
|
export { default as add } from "./arithmetic/add.js";
|
|
4
3
|
export { default as subtract } from "./arithmetic/subtract.js";
|
|
5
4
|
export { default as multiply } from "./arithmetic/multiply.js";
|
|
@@ -18,7 +17,6 @@ export { default as cube } from "./arithmetic/cube.js";
|
|
|
18
17
|
export { default as reciprocal } from "./arithmetic/reciprocal.js";
|
|
19
18
|
|
|
20
19
|
// NUMBER
|
|
21
|
-
|
|
22
20
|
export { default as digitalRoot } from "./number/digitalRoot.js";
|
|
23
21
|
export { default as digitCount } from "./number/digitCount.js";
|
|
24
22
|
export { default as divisors } from "./number/divisors.js";
|
|
@@ -41,4 +39,19 @@ export { default as nthFibonacci } from "./number/nthFibonacci.js";
|
|
|
41
39
|
export { default as previousPrime } from "./number/previousPrime.js";
|
|
42
40
|
export { default as primeFactors } from "./number/primeFactors.js";
|
|
43
41
|
export { default as reverseNumber } from "./number/reverseNumber.js";
|
|
44
|
-
export { default as sumOfDigits } from "./number/sumOfDigits.js";
|
|
42
|
+
export { default as sumOfDigits } from "./number/sumOfDigits.js";
|
|
43
|
+
|
|
44
|
+
// ROUNDING
|
|
45
|
+
export { default as round } from "./rounding/round.js";
|
|
46
|
+
export { default as floor } from "./rounding/floor.js";
|
|
47
|
+
export { default as ceil } from "./rounding/ceil.js";
|
|
48
|
+
export { default as truncate } from "./rounding/truncate.js";
|
|
49
|
+
export { default as roundTo } from "./rounding/roundTo.js";
|
|
50
|
+
export { default as clamp } from "./rounding/clamp.js";
|
|
51
|
+
export { default as roundUpToNearest } from "./rounding/roundUpToNearest.js";
|
|
52
|
+
export { default as roundDownToNearest } from "./rounding/roundDownToNearest.js";
|
|
53
|
+
export { default as roundToNearest } from "./rounding/roundToNearest.js";
|
|
54
|
+
export { default as snap } from "./rounding/snap.js";
|
|
55
|
+
export { default as isBetween } from "./rounding/isBetween.js";
|
|
56
|
+
export { default as wrap } from "./rounding/wrap.js";
|
|
57
|
+
export { default as normalize } from "./rounding/normalize.js";
|