// Numbas version: finer_feedback_settings {"name": "3. Rounding to \\(n\\) decimal places", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "3. Rounding to \\(n\\) decimal places", "tags": [], "metadata": {"description": "
Round a number to $n$ decimal places. Part of HELM Book 1.1
", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "In general, a calculator or computer is unable to store every decimal place of a real number. Real numbers are rounded . To round a number to \\(n\\) decimal places we look at the \\((n+1)^{\\text{th}}\\) digit in the decimal expansion of the number.
\nFor example
\n\n\\begin{align} \\frac13&=0.3333\\qquad\\text{rounded to }4\\text{ decimal places}\\\\ \\frac83&=2.66667\\qquad\\text{rounded to }5\\text{ decimal places}\\\\\\pi&=3.412\\qquad\\text{rounded to }3\\text{ decimal places}\\\\2.3403&=2.340\\qquad\\text{rounded to }3\\text{ decimal places}\\end{align}
\n\nSometimes the phrase ‘decimal places’ is abbreviated to ‘d.p.’ or ‘dec.pl.’.
\n\nWrite down each of these numbers rounded to \\(4\\) decimal places:
\\(0.12345,\\;-0.44444,\\; 0.5555555,\\; 0.000127351,\\;0.000005,\\; 123.456789\\)
\\(0.1235,\\;-0.4444,\\; 0.5556,\\; 0.0001,\\;0.0000,\\; 123.4568\\)
\n", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "precround(random(-50..50 #0.00000001),random(4..7))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a"], "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": "Write down \\(\\var{a}\\) to \\(3\\) decimal places.
\nAnswer: [[0]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "precround(a,3)", "maxValue": "precround(a,3)", "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", "type": "question", "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "resources": []}]}], "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}