How To Add Comma's To Numbers In Ruby

Posted by Weston Ganger on February 05, 2016

If you have some large numbers, displaying them without commas can be hard to read.

Here a simple method in Rails through ActiveSupport

# in controller or view
# => 123,456,789

#in console

Related External Links:

Posted in Rails and Tagged with rails 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts