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/can6N06-gZQBxQfF.js.map
{"version":3,"file":"can6N06-gZQBxQfF.js","sources":["../../src/exercices/can/6e/can6N06.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { arrondi } from '../../../lib/outils/nombres'\nimport { texNombre } from '../../../lib/outils/texNombre'\nimport { calculANePlusJamaisUtiliser, randint } from '../../../modules/outils.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Arrondir au dixième ou au centième'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCHybride'\n\n/*!\n * Jean-Claude Lhote\n * Publié le 11 / 09 / 2021\n * Référence can6N06\n */\nexport const uuid = 'ad44e'\nexport const ref = 'can6N06'\nexport default function ArrondiDixiemeCentieme () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.formatChampTexte = 'largeur15 inline'\n  this.consigne = ''\n  this.tailleDiaporama = 2\n  this.nouvelleVersion = function () {\n    const a = randint(1, 20)\n    const b = randint(0, 9, 5)\n    const c = randint(1, 9, b)\n    const e = randint(1, 9)\n    const d = calculANePlusJamaisUtiliser(a + b * 0.1 + c * 0.01 + e * 0.001)\n    if (choice([true, false])) {\n      this.question = `Quel est l'arrondi au dixième de $${texNombre(d)}$ ?`\n      if (c > 4) {\n        this.correction = `Pour arrondir au dixième, on regarde le chiffre des centièmes : $${c}$.<br>\n     Comme $${c}\\\\geqslant 5$, alors l'arrondi au dixième de $${texNombre(d)}$ est $${texNombre(arrondi(d, 1))}$.`\n        this.reponse = arrondi(d, 1)\n      } else {\n        this.correction = `Pour arrondir au dixième, on regarde le chiffre des centièmes : $${c}$.<br>\n        Comme $${c}< 5$, alors l'arrondi au dixième de $${texNombre(d)}$  est $${texNombre(arrondi(d, 1))}$.`\n        this.reponse = arrondi(d, 1)\n      }\n    } else {\n      this.question = `Quel est l'arrondi au centième de $${texNombre(d)}$ ?`\n      if (e > 4) {\n        this.correction = `Pour arrondir au centième, on regarde le chiffre des millièmes : $${e}$.<br>\n     Comme $${e}\\\\geqslant 5$, alors l'arrondi au centième de $${texNombre(d)}$ est $${texNombre(arrondi(d, 2))}$.`\n        this.reponse = arrondi(d, 2)\n      } else {\n        this.correction = `Pour arrondir au centième, on regarde le chiffre des millièmes : $${e}$.<br>\n        Comme $${e}< 5$, alors l'arrondi au centième de $${texNombre(d)}$ est $${texNombre(arrondi(d, 2))}$.`\n        this.reponse = arrondi(d, 2)\n      }\n    }\n    this.canEnonce = this.question\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","ArrondiDixiemeCentieme","Exercice","randint","b","c","e","d","calculANePlusJamaisUtiliser","choice","texNombre","arrondi"],"mappings":"4EAKY,MAACA,EAAQ,qCACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,aAEvB;AAAA;AAAA;AAAA;AAAA,GAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA0B,CAChDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,iBAAmB,mBACxB,KAAK,SAAW,GAChB,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,MAAM,EAAIC,EAAQ,EAAG,EAAE,EACjBC,EAAID,EAAQ,EAAG,EAAG,CAAC,EACnBE,EAAIF,EAAQ,EAAG,EAAGC,CAAC,EACnBE,EAAIH,EAAQ,EAAG,CAAC,EAChBI,EAAIC,EAA4B,EAAIJ,EAAI,GAAMC,EAAI,IAAOC,EAAI,IAAK,EACpEG,EAAO,CAAC,GAAM,EAAK,CAAC,GACtB,K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