alphagov/spotlight — pull request #530 by lennym (2014-05-21 15:34:52+00:00)
Title: Feature/number formatting

A couple of formatting tasks:

* Make the threshold for displaying numbers as `12.3k` 10,000.
* Render percentages to 1dp by default.

Also... REFACTOR ALL THE THINGS!!

Formatters no longer live on the view, and are now (with the exception of `formatPeriod`, but that's coming next, and this PR is big enough already) all in formatters.js.

![](http://www.livememe.com/7l3mo8x.jpg)
![](http://lathewerks.com/images/Misc/GIF%20BossHedgeTrimmer.gif)