layout - 10K, 20M, 21V kudos etc... in Ruby on Rails -


I am creating a snippet site where people can rate snippets like votes on SP, at present, when A snippet has an amount of more than 999, so it looks on this mug:

So what do I want to do 1K, 1M, etc. ... ... hypothesis like:

----- | 999 | ----- ** Does the user + 1 ** ----- | 1K | ----- 1 million currency ** ----- | 1M | -----

It also goes for billions, trillion, quadruplies, quintillion, etc. ...: 'D'

Ruby for this The methods get, and if not, how can I write them? Thank you.

I do not think Ruby has done such a thing. There is a set of rail, but this particular feature is not included in it, however, if you see the source for "number in human shape", then you should be able to roll your foot without any problems.


Comments