Send to a Friend
What's the equivalent to PHP's number_format method in Ruby?
Asked by dookie (61)
June 19th, 2008
PHP’s number_format method converts 1234 to 1,234 (adding the comma). In Ruby, it would need to be a method on an Fixnum (or a Float) that would return a String.
Using Fluther
or