// Numbas version: exam_results_page_options {"name": "Different styles of number notation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["n", "n_si_en"], "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"n": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "definition": "sum(map(\n random(0..9)*10^n,\n n,\n 0..5)\n)+precround(random(0..1#0),random(0..6))"}, "n_si_en": {"description": "
The number n, written in English SI form.
", "templateType": "anything", "group": "Ungrouped variables", "name": "n_si_en", "definition": "formatnumber(n,\"si-en\")"}}, "parts": [{"prompt": "Write $\\var{n}$ in each of the following styles.
\nEnglish: [[0]]
\nSI English: [[1]]
\nContinental: [[2]]
\nSI French: [[3]]
\nSwiss: [[4]]
\nIndian: [[5]]
", "scripts": {}, "gaps": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "notationStyles": ["plain", "en"], "maxValue": "n", "correctAnswerStyle": "en", "showCorrectAnswer": true, "minValue": "n", "correctAnswerFraction": false, "marks": 1, "variableReplacements": []}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "notationStyles": ["si-en"], "maxValue": "n", "correctAnswerStyle": "si-en", "showCorrectAnswer": true, "minValue": "n", "correctAnswerFraction": false, "marks": 1, "variableReplacements": []}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "notationStyles": ["eu", "plain-eu"], "maxValue": "n", "correctAnswerStyle": "eu", "showCorrectAnswer": true, "minValue": "n", "correctAnswerFraction": false, "marks": 1, "variableReplacements": []}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "notationStyles": ["si-fr"], "maxValue": "n", "correctAnswerStyle": "si-fr", "showCorrectAnswer": true, "minValue": "n", "correctAnswerFraction": false, "marks": 1, "variableReplacements": []}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "notationStyles": ["ch"], "maxValue": "n", "correctAnswerStyle": "ch", "showCorrectAnswer": true, "minValue": "n", "correctAnswerFraction": false, "marks": 1, "variableReplacements": []}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "allowFractions": false, "notationStyles": ["in"], "maxValue": "n", "correctAnswerStyle": "in", "showCorrectAnswer": true, "minValue": "n", "correctAnswerFraction": false, "marks": 1, "variableReplacements": []}], "showCorrectAnswer": true, "type": "gapfill", "variableReplacements": [], "marks": 0, "variableReplacementStrategy": "originalfirst"}], "variable_groups": [], "extensions": [], "name": "Different styles of number notation", "metadata": {"description": "Numbas can now understand and use several different styles of notation for numbers.
\nThis question shows off all the supported styles, both for display in text and in the answers to number entry parts.
", "licence": "Creative Commons Attribution 4.0 International"}, "rulesets": {}, "tags": [], "type": "question", "preamble": {"js": "", "css": ""}, "functions": {}, "advice": "English style uses commas to separate powers of 1000, and a dot for the decimal point: {formatnumber(n,'en')}
\nSI (English) style uses spaces to separate powers of 1000, and a dot for the decimal point: {formatnumber(n,'si-en')}
\nContinental style uses dots to separate powers of 1000, and a comma for the decimal point: {formatnumber(n,'fr')}
\nSI (French) style uses spaces to separate powers of 1000, and a comma for the decimal point: {formatnumber(n,'si-fr')}
\nSwiss style uses apostrophes to separate powers of 1000, and a dot for the decimal point: {formatnumber(n,'ch')}
\nIndian style uses commas to separate groups of digits in the integer part, and a dot for the decimal point. The rightmost group consists of three digits, and other digits are grouped in pairs: {formatnumber(n,'in')}
", "statement": "This question shows off the \"notation styles\" options for the number entry part.
\nYou can specify which styles of notation the student is allowed to use, and how you want to display the expected answer.
", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}