Send to a Friend

dookie's avatar

What's the equivalent to PHP's number_format method in Ruby?

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

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.

Mobile | Desktop


Send Feedback   

`