// Numbas version: exam_results_page_options {"name": "Show amounts of currency with trailing zeros - dpformat version", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "variables": {"a": {"definition": "random(1..20#0.1)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "a"}, "b": {"definition": "random(1..20#0.1)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "b"}}, "functions": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This question is out of date: use the currency function instead.

"}, "parts": [], "advice": "", "name": "Show amounts of currency with trailing zeros - dpformat version", "tags": [], "preamble": {"css": "", "js": ""}, "variable_groups": [], "statement": "

Plain text: £{dpformat(a,2)}

\n

In TeX: $\\var{dpformat(a,2)} + \\var{dpformat(b,2)} = \\var{dpformat(a+b,2)}$

", "extensions": [], "type": "question", "ungrouped_variables": ["a", "b"], "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/"}]}