I am creating a snippet-site where people can rate snippets, just like votes on SO. Currently, when a snippet has over 999 kudos, it looks like on this mug:
So what I want is to do a 1K, 1M, etc... kudos like on SO:
-----
|999|
-----
**user does +1**
-----
|1K |
-----
**one million kudos**
-----
|1M |
-----
The same goes for billions, trillions, quadrillions, quintillions, etc... :'D
Has Ruby got methods for this, and if not, how can I write them myself? Thanks.