// Numbas version: exam_results_page_options {"name": "Johan's copy of Different styles of number notation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

This question shows off the \"notation styles\" options for the number entry part.

\n

You can specify which styles of notation the student is allowed to use, and how you want to display the expected answer.

", "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

English style uses commas to separate powers of 1000, and a dot for the decimal point: {formatnumber(n,'en')}

\n

SI (English) style uses spaces to separate powers of 1000, and a dot for the decimal point: {formatnumber(n,'si-en')}

\n

Continental style uses dots to separate powers of 1000, and a comma for the decimal point: {formatnumber(n,'fr')}

\n

SI (French) style uses spaces to separate powers of 1000, and a comma for the decimal point: {formatnumber(n,'si-fr')}

\n

Swiss style uses apostrophes to separate powers of 1000, and a dot for the decimal point: {formatnumber(n,'ch')}

\n

Indian 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')}

Write \$\\var{n}\$ in each of the following styles.

\n

English: [[0]]

\n

SI English: [[1]]

\n

Continental: [[2]]

\n

SI French: [[3]]

\n

Swiss: [[4]]

\n

Indian: [[5]]

", "marks": 0, "type": "gapfill"}], "tags": [], "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["n", "n_si_en"], "variables": {"n": {"definition": "sum(map(\n random(0..9)*10^n,\n n,\n 0..5)\n)+precround(random(0..1#0),random(0..6))", "group": "Ungrouped variables", "templateType": "anything", "name": "n", "description": ""}, "n_si_en": {"definition": "formatnumber(n,\"si-en\")", "group": "Ungrouped variables", "templateType": "anything", "name": "n_si_en", "description": "

The number n, written in English SI form.

"}}, "name": "Johan's copy of Different styles of number notation", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Numbas can now understand and use several different styles of notation for numbers.

\n

This question shows off all the supported styles, both for display in text and in the answers to number entry parts.

"}, "functions": {}, "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/"}]}