HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can5C24-RkHPvYMb.js.map
{"version":3,"file":"can5C24-RkHPvYMb.js","sources":["../../src/exercices/can/5e/can5C24.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { arrondi } from '../../../lib/outils/nombres'\nimport { texNombre } from '../../../lib/outils/texNombre'\nimport { fraction } from '../../../modules/fractions.js'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Écrire la valeur décimale d\\'une fraction'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\nexport const dateDePublication = '30/03/2023'\n/*!\n * @author Gilles Mora\n */\nexport const uuid = '4d164'\nexport const ref = 'can5C24'\nexport default function FractionVersDecimal () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  this.nouvelleVersion = function () {\n    let a, b, c, maFraction\n    let resultat\n    this.formatChampTexte = 'largeur15 inline'\n    this.formatInteractif = 'calcul'\n    switch (choice([1, 2, 3])) {\n      case 1:// conversion fraction <->décimale cinquième\n        a = randint(1, 12, [5, 10])\n\n        maFraction = fraction(a, 5)\n        resultat = arrondi(a / 5, 1)\n        this.question = `Quelle est la valeur décimale de  $${maFraction.texFraction}$ ?`\n        this.correction = `$${maFraction.texFraction}=${texNombre(resultat)}$`\n        this.reponse = resultat\n        break\n\n      case 2:// conversion fraction <->décimale  quart\n        b = choice([1, 3, 5, 7, 9, 11])\n        maFraction = fraction(b, 4)\n        resultat = arrondi(b / 4, 2)\n        this.question = `Quelle est la valeur décimale de  $${maFraction.texFraction}$ ?`\n        this.correction = `$${maFraction.texFraction}=${texNombre(resultat)}$`\n        this.reponse = resultat\n\n        break\n\n      case 3:// conversion fraction <->décimale  demi\n        c = choice([3, 5, 7, 9, 11, 13, 15])\n        maFraction = fraction(c, 2)\n        resultat = arrondi(c / 2, 1)\n        this.question = `Quelle est la valeur décimale de  $${maFraction.texFraction}$ ?`\n        this.correction = `$${maFraction.texFraction}=${texNombre(resultat)}$`\n        this.reponse = resultat\n\n        break\n    }\n  }\n  this.canEnonce = this.question// 'Compléter'\n  this.canReponseACompleter = ''\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","dateDePublication","uuid","ref","FractionVersDecimal","Exercice","a","b","maFraction","resultat","choice","randint","fraction","arrondi","texNombre"],"mappings":"2EAMY,MAACA,EAAQ,2CACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SACVC,EAAoB,aACjC;AAAA;AAAA,GAGY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAuB,CAC7CC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EAAG,EAAGC,EACTC,EAGJ,OAFA,KAAK,iBAAmB,mBACxB,KAAK,iBAAmB,SAChBC,EAAO,CAAC,EAAG,EAAG,CAAC,CAAC,EAAC,CACvB,IAAK,GACHJ,EAAIK,EAAQ,EAAG,GAAI,CAAC,EAAG,EAAE,CAAC,EAE1BH,EAAaI,EAASN,EAAG,CAAC,EAC1BG,EAAWI,EAAQP,EAAI,EAAG,CAAC,EAC3B,KAAK,SAAW,sCAAsCE,EAAW,WAAW,MAC5E,KAAK,WAAa,IAAIA,EAAW,WAAW,IAAIM,EAAUL,CAAQ,CAAC,IACnE,KAAK,QAAUA,EACf,MAEF,IAAK,GACHF,EAAIG,EAAO,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,EAAE,CAAC,EAC9BF,EAAaI,EAASL,EAAG,CAAC,E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