// Numbas version: finer_feedback_settings {"name": "25.c Decimal into fraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "25.c Decimal into fraction", "tags": [], "metadata": {"description": "
Convert a decimal to a fraction.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Express $\\var{dec}$ as a fraction in simplest form.
", "advice": "{advice}
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"dec": {"name": "dec", "group": "Ungrouped variables", "definition": "decimal(random([10,20,30,40,50,60,70,80,90,12.5,25,37.5,62.5,75,87.5,110,150,175,2,4,8,16])/100)", "description": "", "templateType": "anything", "can_override": false}, "ansn": {"name": "ansn", "group": "Ungrouped variables", "definition": "10000*dec/GCD(10000*dec,10000)", "description": "", "templateType": "anything", "can_override": false}, "ansd": {"name": "ansd", "group": "Ungrouped variables", "definition": "10000/GCD(10000*dec,10000)", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "\"Decimals can be converted to fractions using place value. This decimal has $\\\\var{DecLen}$ decimal places and therefore finishes in the $\\\\var{10^DecLen}$ column. Hence, we can write it as:
\\n\\\\[\\\\frac{\\\\var{dec*10^DecLen}}{\\\\var{10^DecLen}},\\\\]
\\nand then simplifying (if necessary). In this case giving:
\\n\\\\[\\\\frac{\\\\var{ansn}}{\\\\var{ansd}}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "DecLen": {"name": "DecLen", "group": "Ungrouped variables", "definition": "countdp(string(dec))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dec", "ansn", "ansd", "advice", "DecLen"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "dec", "maxValue": "dec", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "resources": []}]}], "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}