math-utils-simple 1.2.0 → 2.1.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/README.md +1 -1
- package/package.json +1 -1
- package/src/index.js +31 -3
- package/src/percentages/decreaseByPercentage.js +3 -0
- package/src/percentages/discount.js +3 -0
- package/src/percentages/findFinalValue.js +3 -0
- package/src/percentages/findOriginalValue.js +7 -0
- package/src/percentages/increaseByPercentage.js +3 -0
- package/src/percentages/lossPercentage.js +11 -0
- package/src/percentages/margin.js +7 -0
- package/src/percentages/markup.js +3 -0
- package/src/percentages/percentage.js +7 -0
- package/src/percentages/percentageChange.js +7 -0
- package/src/percentages/percentageDifference.js +10 -0
- package/src/percentages/profitPercentage.js +7 -0
- package/src/percentages/relativeChange.js +7 -0
- 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/README.md
CHANGED
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,34 @@ 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";
|
|
58
|
+
|
|
59
|
+
// PERCENTAGES
|
|
60
|
+
export { default as percentage } from "./percentages/percentage.js";
|
|
61
|
+
export { default as increaseByPercentage } from "./percentages/increaseByPercentage.js";
|
|
62
|
+
export { default as decreaseByPercentage } from "./percentages/decreaseByPercentage.js";
|
|
63
|
+
export { default as percentageDifference } from "./percentages/percentageDifference.js";
|
|
64
|
+
export { default as percentageChange } from "./percentages/percentageChange.js";
|
|
65
|
+
export { default as findOriginalValue } from "./percentages/findOriginalValue.js";
|
|
66
|
+
export { default as findFinalValue } from "./percentages/findFinalValue.js";
|
|
67
|
+
export { default as discount } from "./percentages/discount.js";
|
|
68
|
+
export { default as markup } from "./percentages/markup.js";
|
|
69
|
+
export { default as profitPercentage } from "./percentages/profitPercentage.js";
|
|
70
|
+
export { default as lossPercentage } from "./percentages/lossPercentage.js";
|
|
71
|
+
export { default as margin } from "./percentages/margin.js";
|
|
72
|
+
export { default as relativeChange } from "./percentages/relativeChange.js";
|