https://numbas.mathcentre.ac.uk/question/14107/separate-thousands-with-commas-using-custom-functions/embed/