method
number_with_delimiter
number_with_delimiter(number, delimiter=",")
public
Formats a number with a delimiter. Example:
number_with_delimiter(12345678) => 12,345,678
Register or
log in
to add new notes.
grosser -
October 25, 2008
2 thanks
Alternative: use 1000.humanize
1.humanize == “1″ 1000000.humanize == “1.000.000″ 1000.12345.humanize == “1.000,12″
http://pragmatig.wordpress.com/2008/10/25/numbers-for-humans-humanize-for-numeric/

