// Numbas version: exam_results_page_options {"name": "NH2 FDP convert 2 - Decimal into fraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NH2 FDP convert 2 - 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}

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"dec": {"name": "dec", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.9#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "ansn": {"name": "ansn", "group": "Ungrouped variables", "definition": "10*dec/GCD(10*dec,10)", "description": "", "templateType": "anything", "can_override": false}, "ansd": {"name": "ansd", "group": "Ungrouped variables", "definition": "10/GCD(10*dec,10)", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "if(GCD(10*dec,10)=1,adviceno,adviceyes)", "description": "", "templateType": "anything", "can_override": false}, "adviceno": {"name": "adviceno", "group": "Ungrouped variables", "definition": "\"

Decimals can be converted to fractions using place value. This decimal only has 1 decimal place and therefore finishes in the \\\"tenths\\\" column. Hence, we can write it as: 

\\n

\\\\[\\\\frac{\\\\var{dec*10}}{10},\\\\]

\\n

and then simplifying (if necessary). In this case no simplification is needed.

\"", "description": "", "templateType": "long string", "can_override": false}, "adviceyes": {"name": "adviceyes", "group": "Ungrouped variables", "definition": "\"

Decimals can be converted to fractions using place value. This decimal only has 1 decimal place and therefore finishes in the \\\"tenths\\\" column. Hence, we can write it as: 

\\n

\\\\[\\\\frac{\\\\var{dec*10}}{10},\\\\]

\\n

and then simplifying (if necessary). In this case giving:

\\n

\\\\[\\\\frac{\\\\var{ansn}}{\\\\var{ansd}}\\\\]

\"", "description": "", "templateType": "long string", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dec", "ansn", "ansd", "advice", "adviceno", "adviceyes"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

[[0]] Numerator

\n

--------------

\n

[[1]] Denominator

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Numerator", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ansn", "maxValue": "ansn", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Denominator", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ansd", "maxValue": "ansd", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "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": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}]}], "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}