Convert large numbers into smaller ones with count method

Big numbers will cause issues within the views when a follower reaches a
certain amount. For example. (1,000,000) How can I convert the number
into 1 Mil or for 1,500,000 into 1.5 Mill?

On Mon, Jan 11, 2016 at 9:02 PM, David W. [email protected]
wrote:

Big numbers will cause issues within the views when a follower reaches a
certain amount. For example. (1,000,000) How can I convert the number
into 1 Mil or for 1,500,000 into 1.5 Mill?

included for you :slight_smile:

ActionView::Helpers::NumberHelper


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Hassan S. wrote in post #1180540:

On Mon, Jan 11, 2016 at 9:02 PM, David W. [email protected]
wrote:

Big numbers will cause issues within the views when a follower reaches a
certain amount. For example. (1,000,000) How can I convert the number
into 1 Mil or for 1,500,000 into 1.5 Mill?

included for you :slight_smile:

ActionView::Helpers::NumberHelper


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs