// Numbas version: exam_results_page_options {"name": "Use formatNumber to separate powers of 1000 with commas", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Use formatNumber to separate powers of 1000 with commas", "tags": [], "metadata": {"description": "

This question shows how to display a number like \"1234\" as \"1,234\", or \"1 234\", using the formatNumber function.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

English style:

\n

{formatnumber(123,\"en\")}

\n

{formatnumber(1234,\"en\")}

\n

{formatnumber(1234567,\"en\")}

\n

\n

SI style:

\n

{formatnumber(123,\"si-en\")}

\n

{formatnumber(1234,\"si-en\")}

\n

{formatnumber(1234567,\"si-en\")}

", "advice": "

A

", "rulesets": {}, "extensions": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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/"}]}