math-exercises 2.2.12 → 2.2.13

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.
@@ -7,7 +7,7 @@ const decimal_1 = require("../../../../math/numbers/decimals/decimal");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
9
9
  const getMultiplyDecimalByNegativeTensQuestion = () => {
10
- const dec = decimal_1.DecimalConstructor.random(-200, 200, (0, randint_1.randint)(1, 5));
10
+ const dec = decimal_1.DecimalConstructor.random(1, 200, (0, randint_1.randint)(1, 5));
11
11
  const pow = -(0, randint_1.randint)(1, 4);
12
12
  const factor = Math.pow(10, pow);
13
13
  const answer = dec.multiplyByPowerOfTen(pow).toTree().toTex();
@@ -9,7 +9,7 @@ const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
10
  const coinFlip_1 = require("../../../../utils/coinFlip");
11
11
  const getMultiplyDecimalByTensQuestion = () => {
12
- const dec = decimal_1.DecimalConstructor.random(-200, 200, (0, randint_1.randint)(1, 5));
12
+ const dec = decimal_1.DecimalConstructor.random(1, 200, (0, randint_1.randint)(1, 5));
13
13
  const pow = (0, randint_1.randint)(1, 4);
14
14
  const factor = Math.pow(10, pow);
15
15
  const isDivide = (0, coinFlip_1.coinFlip)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.2.12",
3
+ "version": "2.2.13",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [