Is there a way to have rails print out a number with commas in it?
For example, if I have a number 54000000.34, I can run <%= number.function %>, which would prin
The following do the trick for both delimiter and precision (API ref).
ActiveSupport::NumberHelper.number_to_rounded(1234.532, delimiter: ',', precision: 1)
(or from views just number_to_rounded, no need for the suffix)
number_to_rounded
HTH