toorshia/justgage — pull request #7 by aaaaron (2012-09-23 18:41:03+00:00)
Title: Add support for human friendly abbreviations on large numbers

My project was dealing with very large numbers, and the text values were overflowing the arc. This fork adds two new options:

```javascript
// humanFriendly : bool
// convert large numbers for min, max, value to human friendly (e.g. 1234567 -> 1.23M)
humanFriendly : (config.humanFriendly) ? config.humanFriendly : false,

// humanFriendlyDecimal : int
// number of decimal places for our human friendly number to contain
humanFriendlyDecimal : (config.humanFriendlyDecimal) ? config.humanFriendlyDecimal : 0,
```

Here's an example of what it looks like in use: http://i.imgur.com/jDEnT.png

The actual code to do the conversion was extracted from http://stackoverflow.com/questions/2692323/code-golf-friendly-number-abbreviator and made to be a bit easier to read.