math-exercises 1.4.9 → 1.4.10

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.
@@ -28,7 +28,7 @@ function getDiceBasicProbasQuestion() {
28
28
  const target = isParityQuestion ? `un nombre ${isEvenQuestion ? 'pair' : 'impair'}` : `la face ${faceAsked}`;
29
29
  const answer = isParityQuestion
30
30
  ? isEvenQuestion
31
- ? `\\frac{1}{2}`
31
+ ? new rational_1.Rational((nbFaces - 1) / 2, nbFaces).simplify().tex
32
32
  : new rational_1.Rational((nbFaces + 1) / 2, nbFaces).simplify().tex
33
33
  : `\\frac{1}{${nbFaces}}`;
34
34
  const getPropositions = (n) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [