// Numbas version: exam_results_page_options {"name": "Johan's copy of Rounding to 0, 1, 2 and 3 decimal places", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"number4": {"definition": "precround(ans4,3)+'49'+random('9','8','7','6','5')", "name": "number4", "group": "Ungrouped variables", "description": "

this is to see if the student rounds from the end of the number instead of just looking at the fourth decimal place.

", "templateType": "anything"}, "ans4": {"definition": "random(0.001..0.999#0.001)", "name": "ans4", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "number3": {"definition": "random(10..90#0.1)+trick+random(0.00555,0.00666,0.00777,0.00888,0.00999)", "name": "number3", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "number1": {"definition": "random(10.001..300#0.0003)", "name": "number1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "number2": {"definition": "random(10.001..300#0.0003)", "name": "number2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "trick": {"definition": "random(0.04,0.05, 0.06, 0.07, 0.08)", "name": "trick", "group": "Ungrouped variables", "description": "", "templateType": "anything"}}, "parts": [{"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "type": "gapfill", "prompt": "

{number1} to the nearest whole number is [[0]].

", "gaps": [{"precision": 0, "scripts": {}, "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": false, "correctAnswerFraction": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "minValue": "{number1}", "precisionPartialCredit": 0, "mustBeReducedPC": 0, "precisionType": "dp", "strictPrecision": true, "type": "numberentry", "showCorrectAnswer": true, "allowFractions": false, "correctAnswerStyle": "plain", "maxValue": "{number1}", "mustBeReduced": false}], "marks": 0, "showCorrectAnswer": true}, {"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "type": "gapfill", "prompt": "

{number2} rounded to one decimal place is [[0]].

", "gaps": [{"precision": "1", "scripts": {}, "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": false, "correctAnswerFraction": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "minValue": "{number2}", "precisionPartialCredit": 0, "mustBeReducedPC": 0, "precisionType": "dp", "strictPrecision": true, "type": "numberentry", "showCorrectAnswer": true, "allowFractions": false, "correctAnswerStyle": "plain", "maxValue": "{number2}", "mustBeReduced": false}], "marks": 0, "showCorrectAnswer": true}, {"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "type": "gapfill", "prompt": "

{number3} rounded to two decimal places is [[0]].

", "gaps": [{"precision": "2", "scripts": {}, "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": false, "correctAnswerFraction": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "minValue": "{number3}", "precisionPartialCredit": 0, "mustBeReducedPC": 0, "precisionType": "dp", "strictPrecision": true, "type": "numberentry", "showCorrectAnswer": true, "allowFractions": false, "correctAnswerStyle": "plain", "maxValue": "{number3}", "mustBeReduced": false}], "marks": 0, "showCorrectAnswer": true}, {"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "type": "gapfill", "prompt": "

{number4} rounded to three decimal places is [[0]].

", "gaps": [{"precision": "3", "scripts": {}, "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": false, "correctAnswerFraction": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "minValue": "{ans4}", "precisionPartialCredit": 0, "mustBeReducedPC": 0, "precisionType": "dp", "strictPrecision": true, "type": "numberentry", "showCorrectAnswer": true, "allowFractions": false, "correctAnswerStyle": "plain", "maxValue": "{ans4}", "mustBeReduced": false}], "marks": 0, "showCorrectAnswer": true}], "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "name": "Johan's copy of Rounding to 0, 1, 2 and 3 decimal places", "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Round random numbers to the closest whole number, 1 to 3 decimals places. Also rounding that could show common misunderstandings.

"}, "ungrouped_variables": ["number1", "number2", "trick", "number3", "ans4", "number4"], "functions": {}, "extensions": [], "advice": "

When we are rounding we look at the first digit that we might discard. If it is $5$ or greater we round up. If it is less than $5$ we round down.

\n

a) To round to the nearest whole number, we look at the first decimal place to decide whether to round up or down.

\n

b) To round to one decimal place, we look at the second decimal place to decide whether to round up or down.

\n

c) To round to two decimal places, we look at the third decimal place to decide whether to round up or down.

\n

d) To round to three decimal places, we look at the fourth decimal place to decide whether to round up or down.

", "tags": [], "statement": "

Round the following numbers to the indicated precision.

", "rulesets": {}, "type": "question", "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}]}], "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}