Khan/khan-exercises — pull request #17328 by jasonm (2012-03-23 05:11:13+00:00)
Title: Fix commafy() util function to insert commas into 4-digit numbers, 4-place decimals

The commafy() util function will only comma-separate numbers with 5 or more digits (e.g. 10,000) but will not comma-separate numbers with 4 digits (e.g. 4000).

It also does not add the "\;" into decimal places for numbers with four decimal places (e.g. 1.2345 should be 1.234\;5).

Is this intentional?

If not, this pull fixes the two bugs and includes test coverage.